Quantcast
Channel: wp_nav_menu (secondary menu) not adding current classes - WordPress Development Stack Exchange
Browsing all 3 articles
Browse latest View live

Answer by Harish Chinju for wp_nav_menu (secondary menu) not adding current...

You need to assign the menu to the particular theme option from the admin end, Orelse use this code, wp_nav_menu( array( 'menu' => 'second-menu' ) ); Instead of, wp_nav_menu( array( 'theme_location'...

View Article



Answer by Chip Bennett for wp_nav_menu (secondary menu) not adding current...

These don't match: register_nav_menus( array( 'second-menu' => __( 'Second Menu' ) ) ); and wp_nav_menu( array( 'theme_location' => 'producten-menu' ) ) Your 'theme_location' must match the slug...

View Article

wp_nav_menu (secondary menu) not adding current classes

I've looked everywhere, but i can't find a solution. My secondary menu isn't adding any current classes to the tags when it's rendered. I have added this menu in my functions.php file function...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images