WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an web site with top-header menu and sidebar menu.

Situation, like:

header menu: books music movies (if we are now under music)

sidemenu: blues jazz dance (if we are now under "Jazz")

sidemenu submenu (under jazz): 60's 90's 40's (if we are now at 90's)

I would like to know how can I highlight MUSIC item from top menu (for example by id or class), because wp_nav_menu does't mark this grandparent item in any way...

Please, help!! )

share|improve this question

You will need to add a class to the correct menu item yourself. Here is a similar example which you can modify according to your needs: http://wpthemetutorial.com/2013/05/14/filtering-classes-on-wp_nav_menu/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.