The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Current Navigational Highlighting Re: Current Navigational Highlighting


Wait, wait… the `body_class()` is a WordPress function. It has nothing to do with CSS file. It simply outputs page, post, environment details to `body` html element so that you can target them in your style sheet. These “classes” are predefined by WordPress.

You could add custom classes, like so: