Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] change style for post container in single page only (http://forum.bytesforall.com/showthread.php?t=14940)

fsastrow Jul 25, 2011 06:04 AM

[SOLVED] change style for post container in single page only
 
Dear all

Is there any way to change the style for post container in single page only? Meaning I don't want the style to be applied to the home page etc. just the single page.

I've been wondering on how to do it since the id and class looks same. Do we have to hardcode it?

Thanks in advance

juggledad Jul 25, 2011 06:36 AM

If you want to apply styling to the post container on a single page, you will have to manually create the styling and put it in the CSS Inserts. You can use the CSS selector

body.single-post div.post {....}

so if you used

body.single-post div.post {background-color: #00ffff;}

the background color will be a 'interesting' blue

fsastrow Jul 27, 2011 07:06 AM

many thanks juggledad! it works! ^^


All times are GMT -6. The time now is 10:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.