Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a new WordPress theme and I want to add extra menu, but as WordPress 3.9 allows only one menu to add in one position/places in theme? How can I add two menus in one position?

I purchased the theme and it has top navigation call 'top-navigation' I used that for my main menu. Below that I need another menu, but I can't add because only one menu can be add in one position in this theme. So I am struggling to add full width slim menu.

share|improve this question
    
Can you rephrase your question? Add some context or examples? –  Tom J Nowell Jul 18 at 16:13
    
I purchased the theme and it has top navigation call 'top-navigation' I used that for my main menu. Below that I need another menu, but I can't add because only one menu can be add in one position in this theme. So I am struggling to add full width slim menu. –  saentys Jul 18 at 16:29
    
What theme are you using? This a more theme-specific question. –  Aibrean Jul 18 at 16:35
    
this is the item i purchased jkreativ.jegtheme.com/villa you can see main menu below that try to add another menu –  saentys Jul 18 at 16:35
    
theme name is jkreativ –  saentys Jul 18 at 16:36

1 Answer 1

up vote 0 down vote accepted

WordPress allows the addition of extra nav menus.

Add this to your child themes functions file:

   register_nav_menus( array(
    'secondary_menu' => 'My Second Menu'
) );

Add this to your header.php file or the file where you want to display your extra nav menu.

 <nav id="site-navigation" class="main-navigation" role="navigation">
      <?php wp_nav_menu( array( 'theme_location' => 'secondary', 'menu_class' => 'nav-menu' ) ); ?>
    </nav><!-- #site-navigation -->

Change the menu_class in the code to match your existing themes nav menu or you may need to add extra CSS to style it.

Resources:

http://codex.wordpress.org/Function_Reference/register_nav_menus http://codex.wordpress.org/Function_Reference/wp_nav_menu

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.