Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] catagory code incorrect (http://forum.bytesforall.com/showthread.php?t=18473)

westpro Sep 25, 2012 07:24 AM

[SOLVED] catagory code incorrect
 
Received outstanding support help in creating static headers for pages in the Atahualpa theme.
One last detail . . . there are 7 menu items on the site - 6 are pages and one is a category. In the css code the pages have codes that are express as:

body.page-id-4 div#my-imagecontainer {
background: url('http://www.clbengineers.com/wp-content/uploads/2012/09/WaterPlantHeader-for-pages.jpg') top center no-repeat;);
}

However, for the category page I entered this code and I am sure I have not identified the category in proper css.

body.page-cat-3 div#my-imagecontainer {
background: url('http://www.clbengineers.com/wp-content/uploads/2012/09/RefineryPageHeader.jpg') top center no-repeat;);
}

could I please get one last bit of help in writing this category code properly?
Thanks,
Westpro

lmilesw Sep 25, 2012 07:33 AM

If you look at the source code and search for "body class" (without the quotes) you will see there are several classes you could use depending on what you want to affect.
It could be
HTML Code:

body.archive div#my-imagecontainer
or
HTML Code:

body.category div#my-imagecontainer
or
HTML Code:

body.category-projects div#my-imagecontainer
or
HTML Code:

body.category-3 div#my-imagecontainer

westpro Sep 25, 2012 10:11 AM

Perfect! Thank you!


All times are GMT -6. The time now is 04:19 PM.

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