• <?php
    		if ( function_exists('has_nav_menu') && has_nav_menu('primary-menu') ) {
    			wp_nav_menu( array( 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fl', 'theme_location' => 'primary-menu' ) );
    		} else {
    		?>

    I’m trying to call a second menu in my nav bar, I figure there has to be a way to add the secondary menu call using the above code for the primary menu – but I’m just unsure of how to proceed. I tried copying and replacing primary menu with secondary menu and throwing it on the end of the array, but that didn’t work either.

    Any thoughts would be appreciated.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Child theme – Canvas – adding 2nd menu’ is closed to new replies.