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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)