Keeping parent menu items active in child pages

wp_nav_menu, unless altered by a filter, adds a current-menu-parent and a current-menu-ancestor class to the menu items. It sounds like you want the “ancestor” one.

http://codex.wordpress.org/Function_Reference/wp_nav_menu#Menu_Item_CSS_Classes

Leave a Comment