Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Forum How-To (http://forum.bytesforall.com/forumdisplay.php?f=9)
-   -   [SOLVED] Styling the homepage differently than the single page (http://forum.bytesforall.com/showthread.php?t=13456)

winsila Mar 24, 2011 02:29 AM

[SOLVED] Styling the homepage differently than the single page
 
How do I apply a styling that affects only the homepage elements and not the single page? For instance, I want to add a border above and below a post container in the homepage but I don't the borders to appear in the singe post view. How do I do that?

juggledad Mar 24, 2011 05:18 AM

you will need to add CSS Selectors and CSS rules to do the styling. You can prefix any selector with 'body.home' so to have a border around a post on the home page you would use
HTML Code:

body.home .post {border: solid 2px red;}
A great tool to use if you don't already, is FireBug in FireFox so you can see the existing CSS for an element in the HTML

winsila Mar 24, 2011 06:10 AM

Thanks Juggledad. I do use FireBug but I was not aware of the body.home stuff. Thanks again.


All times are GMT -6. The time now is 09:02 PM.

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