you could check ‘body_class()’ and then use the extra class(es) for styling
http://codex.wordpress.org/Template_Tags/body_class
thanks. even after reading the page i am not sure how to implement that.
patty25,
Post a link to your site and the page in question.
Thanks
this is the page: http://currentcorp.dreamhosters.com/?cat=8
been reading forever on how to change it. i am sure its simple i just cannot seem to get it to work.
edit header.php of your theme;
look for the line with <body>;
change it to <body <?php body_class(); ?>>
this will then put some extra css classes to the body tag, one of which will be ‘.category-slug ‘ where ‘slug’ corresponds to the name of your category.
assume the name of your category, where you want to show a different background color, is ‘events’:
then, in style.css of your theme, you could add a line such as:
body.category-events { background-color:#123456; }
hope this helped to explain the use of ‘body_class()’, good luck
Thank you!!! That almost worked!! It changed the background to the bottom half of the page.
http://currentcorp.dreamhosters.com/?cat=8
Is there a way to clear the image being used?
Thank you SO much for your help.
in the same style, you would set the background image to none:
body.category-events { background-color:#123456;
background-image: none; }
thank you SO much for you help!!!
I have another page I need to change the background color to. This time is not a category, its just a regular page.
http://www.currentcorp.com/home/law-enforcement-products/
How would I edit the CSS to accommodate this?
I have tried everything I can think of.
Thank you!
Patty