• Resolved Ysengrin12

    (@ysengrin12)


    Hi, I’m trying to add a second (and maybe a third) menu to the Verbo-Theme. I found some guides but they don’t work. When I add a second menu, the main menu appears two times. I guess the problem ist this code in the mythemes.class.php:

    /* REGISTER THEME MENUS */
    static function reg_menus( )
    {
    register_nav_menus( self::cfg( ‘menus’ ) );
    }

    All guides I found tell me it should look like this:

    register_nav_menus( array(
    ‘top_navi’ => ‘Top-Navigation’,
    ‘footer_navi’ => ‘Footer-Navigation’,
    ) );

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You should do this in a child theme not the theme itself.

    You have to first register the menu in your example you registered the menu footer_navi.

    You should be able to see it when you go under menus. However, It will not show up anywhere in your theme until you add it.

    To add it (I’m assuming in the footer) you need to open the footer.php file and add the menu with the wp_nav_menu example

    <?php wp_nav_menu(array('theme_location' => 'footer_navi','menu_id=> 'footer-menu')); ?>

    You can than go back to your menus and add a new menu select the menu that was created. Add your items to it.

    This will create the menu but it may not be styled.

    Thread Starter Ysengrin12

    (@ysengrin12)

    Thanks! That’s it! (There’s just a “‘” missing behind “menu_id”) ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a second menu?’ is closed to new replies.