• Is there a way to get a second top menu in twenty seventeen?
    I have a lot of menu-items now on all the pages.
    I want to give the main menu only 6 or 7 items or so, and divide the rest over a number of other menus that will be shown only on certain pages below the main menu.

    Is that possible without a plugin?
    Or do I have to use a plugin an which one?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello hansbeen,

    You have to edit theme files for add extra menu area.

    1. Register a new menu area => You have to edit functions.php file for add new navigation area.

    For Example:
    file: functions.php


    register_nav_menus(array(
    'second_nav' => 'Second Navigation',
    ));

    2. Add menu in template file => You have edit file in which you want to add menu.

    For Example:
    file: header.php


    $args = array( 'theme_location' => 'second_nav' );

    wp_nav_menu($args);

    Please refer Navigation Menus

    Video tutorial WordPress Navigation Menus (Theme Development)

    Note : All Changes you done in any file of theme are gone when you update theme. So prefer Child Theme.

    Hope this will helps you.

    Thread Starter hansbeen

    (@hansbeen)

    If I do that it messes up the page, I get a page with only the header and the main menu and no text. It is also not clear for me where to put the code if I want it on the top of a page.

    I’m trying to do something similar as well and can’t figure it out. twenty seventeen pulls the default menu in from a buried file via get template part (i’m tire on ipad; correct name isn’t correct) folder –> template/navigation/

    anyways it doesn’t appear that the standard way of adding or changing the menu doesn’t work.

    i was try to create header-front-page.php to pull in a specific menu for just the front page. The home page having the one page navigation section doesn’t make sense. This may just not be the parent theme for me for my project.it’s a woo commerce site.

    any luck figure this out on your end?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘More menus in twenty seventeen’ is closed to new replies.