• Theme twenty seventeen with child theme
    Added
    <?php wp_nav_menu( array( 'theme_location' => 'bottom' ) ); ?>
    right before
    <div class="site-info"> in site-info.php (to display it in footer)

    The menu is displaying all top level pages even though the menu named ‘bottom’ has the setting to add new top pages automatically turned off and I only added 6 items to that menu.
    url:
    https://37.60.244.202/~healt984/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi andy3000,

    have you assigned the correct menu, which you created in Dashboard -> Appearance -> Menus to the “bottom” menu location via the “Manage Locations” tab?

    Best,
    wpercom

    Thread Starter andy3000

    (@andy3000)

    No, the only two locations available in the options were the top position where I have another menu and a social media menu which would need too many css changes, so I just added that menu there directly by adding it to the template.

    Moderator bcworkz

    (@bcworkz)

    If you specify a non-existent theme location, then it’s not possible to define a menu to use and wp_nav_menu() will just output the default menu. You need to add another theme location to be able to define another menu. But if you want to reuse the top menu in the footer, then just specify the top theme location from the call in the footer.

    Hi andy3000,

    were you able to resolve your issue?
    If you want to have a custom menu area for your footer, you need to define and call the new menu location in the functions.php file (pay attention to create a child-theme and not change the original functions.php, as it will get overwritten with a future update).
    This link can help you:
    WordPress Codex – Navigation Menus
    If the information in the link isn’t something you’re comfortable with, you can either post a job via WordPress Jobs.

    Hope, this helps you.

    Cheers,
    wpercom

    • This reply was modified 7 years, 9 months ago by bcworkz.
    Moderator bcworkz

    (@bcworkz)

    @kunstwerck — We appreciate your efforts to help andy3000 and only have the best intentions, but it is not permitted to suggest taking issues off forum into private interactions. It deprives other visitors the benefit of how the issue is resolved.

    Please do not suggest anyone contact you off-forum here, thank you for understanding.

    Thread Starter andy3000

    (@andy3000)

    Thanks to both of you. Yes I did fix this. Once I read bcworkz’s post I added the code for the new location in the child-theme functions.php
    Sorry fighting a cold and collapsed before I could reply.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Added menu displaying ALL top level but that setting is off’ is closed to new replies.