Hey all, found this old thread covering the subject of defining a different body id/class on different pages.
This is a very useful feature, and the thread seemed to provide no solid, simple solution. At present my body tag looks like this:
Although this changes on static pages (like <body id="aboutus" class=""> for example), once I'm inside the shop all the body id's are the same (<body id="shopindex" class="">).PHP Code:<body id="<?php echo $body_id . ''; ?>" class="">
Ideally I'd like the body id to be something like "shop" and the class to be the category, like this:
It wouldn't have to be the name of the category, the ID number would do. Any suggestions? Thanks in advance!HTML Code:<body id="shop" class="hampers">


Reply With Quote
