[resolved] Problem with multiple navigation menus (1 post)

  1. codex22
    Posted 2 years ago #

    Hello members,

    I tried to add a multiple navigation to my theme. Therefore I used the following code in functions.php :
    ` if (function_exists('register_nav_menus')) {
    register_nav_menus(array( 'primary' => 'Main Navigation',
    'secondary' => 'Social Navigation'));
    and in my theme index.php I used the following code:

    `<?php wp_nav_menu( array ( 'container_class' => 'main-nav', 'container' => 'nav')); ?>

    <?php wp_nav_menu( array ( 'container_id' => 'social', 'container_class' =>'right', 'container' => 'div', 'menu_class' => 'social-nav')); ?>`

    The Problem is, wordpress is displaying the the main navigations twice. You can view the outcome here: http://ammantempel.net/ta/

    Actually the main navigation should be on the leftside of the navbar and the social navigation (facebook, twitter, youtube...) on the right side. Please help! Thanks for your answers!

Topic Closed

This topic has been closed to new replies.

About this Topic