How to change body tag attributes?
Anyone know of a plugin or hack that will let me change a class or id attribute in the body tag?
What I want to do is have elements of my site hide/display based on the page their on. Part of this would be for navigation. Part would be hiding a section of the ‘homepage’ using display:none. But another part is changing the look of the template between an overall homepage, a blog homepage and ‘sections’ of the site that would be built as pages.
On the whole design, I want global nav elements that are links to pages mostly – that will then link deeper into site (know how). One missing piece is how to get a ‘blog’ link in the main nav that would style differently when on the blog homepage.
The overall site homepage would be a marriage between static elements and the posts in the loop (got that, actually built and working – sits index.php).
The blog homepage I would like to be the usual index.php page, complete with my global nav but without the static page elements (no idea).
For the ‘pages’ I want a slightly different template – bringing back the static page elements, but removing the post elements. And I want any secondary navigation to be styled/highlighted with css to denote page location (not sure on either).
If this is clear enough, what plugins, hacks. strategies (all of the above) could you recommend to help me accomplish this?
Thanks, in advance.
- The topic ‘How to change body tag attributes?’ is closed to new replies.