Help with PHP if-then..
I'm trying to display seperate body classes for the home page and the inner pages.
I have written this into my index.php
<body class="<?php if (page-id-5){
echo "body-home";
} else {
echo "body-other";
}
?>">
It does work for the front page (page-id-5), but it just puts in "body-home" on the inner pages as well.
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