Forums

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

#127521
Alen
Participant

The body_class should return classes that belong to specific page/post regardless if you have latest posts or static page selected.

Something is not working or you have configured settings/templates incorrectly.

I’ve tested with clean install of WordPress along with blank themes from [HTML5 Reset](https://github.com/murtaugh/HTML5-Reset-Wordpress-Theme) and [Bones](https://github.com/eddiemachado/bones).

You can try using [conditional statement](http://codex.wordpress.org/Function_Reference/is_front_page) `is_front_page()` to check if user is on Front Page then just output corresponding classed to the body. But this should not be necessary, `body_class()` should take care of this…