double navigator

Viewing 2 posts - 1 through 2 (of 2 total)
  • #15451
    juanes537
    Participant

    Hi, i just started using Wp,, i intalled minimatica, witch is great!!!
    and now i was wondering if there is anyway i can double the navigator so i have my menu divided in two different lines.
    Thank you

    #15572
    Daniel Tara
    Keymaster

    In functions.php you can add a new menu theme location like this:

    register_nav_menus(
    	array(
    	  'primary_nav' => 'Primary Navigation',
    	  'secondary_nav' => 'Secondary Navigation',
    	)
    );

    Then in footer.php you can double this line:

    <?php wp_nav_menu( array( 'theme_location'  => 'primary_nav', 'container_id' => 'primary-nav', 'container_class' => 'nav', 'fallback_cb' => 'minimatica_nav_menu' ) ); ?>

    In the new line make sure to change primary_nav to secondary_nav. In the end it should look like this:

    <?php wp_nav_menu( array( 'theme_location'  => 'secondary_nav', 'container_id' => 'primary-nav', 'container_class' => 'nav', 'fallback_cb' => 'minimatica_nav_menu' ) ); ?>
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.