Having some trouble with the <body class> feature in wordpress
I'm playing around making a theme in wordpress and I have a small problem
I wish to display different <body> for the front page than for the rest of the site
Now I know there is a feature in wordpress for this
<body <?php body_class(); ?>>
I have added this to my header.php and this to my css
.page {
background-image:url(images/about_bg.jpg);
background-repeat:repeat-x;
margin:0;
padding:0;
}
.page-id-5 {
background-image:url(images/main_bg.jpg);
background-repeat:repeat-x;
margin:0;
padding:0;
}
here page-id-5 is my home-page. (static front page)
Now this is how Wordpress does this, and it does work (sort of)
The when I only have information in the .page-id-5 field it works like a charm showing background on the front page only, but when I put info in the .page field the two backgrounds gets mixed around on all pages.
Any ideas?
Kind regards
Ask the Internet Marketing Geek <-- Happy to help with technical challenges
MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy
Ask the Internet Marketing Geek <-- Happy to help with technical challenges
MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy
Eddie Spradley