Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Main Navigation help


peterverkooijen
Participant

@peterverkooijen

No, not in the header; in a function that puts classes in the body tag and then you can use those classes to highlight current in CSS.

So in my theme I have something like this in header.php:

<body class="<?php custom_body_class() ?>">

And then a function custom_body_class in functions.php in the theme.

It’s a different approach, but I noticed the same problem with ‘members’ getting added to just about any body tag. I wasn’t able to figure out why, but managed to sort of make it work by throwing the kitchen sink at it.

I know, not very helpful…

Skip to toolbar