Highlighting Menu Items in WordPress

With WordPress 3.0 came 3 new style classes that allow you to fully style the menu items to your liking. The classes are:


If they are missing from your stylesheet – they probably are – make sure to add them and define properties for them. Together with the good old “.current-page-item” you can finally highlight the menu items all the way. When on a page, when on a subpage to that page, when in a category and when in a post in a category. These classes saved my day. I hope they will save your day too.

Time to highlight your menu!

Comments are closed.