Ignore my last post! I found a much better method-
In your header.php, locate the <body> tag
<body id="
Then put in the php that first refers to the loop
if ( have_posts() ) { the_post(); rewind_posts(); }
And then you want to specify the categories that use a particular body id,
if ( in_category(23) )
and then the name of the id you want to display for that category-
{
echo 'home';
} ?>">
An example of this, that I use on the site I am making looks like -
<body id="<?php
if ( have_posts() ) { the_post(); rewind_posts(); }
if ( in_category(23) ) {
echo 'home';
}
if ( in_category(3) || in_category (15) || in_category (16) || in_category (17) || in_category (18) ) {
echo 'news';
}
if ( in_category(9) || in_category (10) || in_category (11) || in_category (12) || in_category (13) ) {
echo 'band';
}
if ( in_category(20) ) {
echo 'media';
}
if ( in_category(4) || in_category (5) || in_category (6) || in_category (7) ) {
echo 'free-stuff';
}
if ( in_category(21) ) {
echo 'help';
}
?>">
Which works with the CSS I have used-
body#home ul#nav li a.nav-home, body#homenews ul#nav li a.nav-news, body#news ul#nav li a.nav-news, body#band ul#nav li a.nav-band, body#media ul#nav li a.nav-media, body#free-stuff ul#nav li a.nav-free-stuff, body#shop ul#nav li a.nav-shop, body#forum ul#nav li a.nav-forum, body#contact ul#nav li a.nav-contact {
background-color: #fecb00;
background-image: url(images/nav-tile-hover.jpg);
background-repeat: repeat-x;
background-position: bottom left;
}
Again, I am by no means an expert programmer, but it seems to work for me!