0

How do I get 3rd level to show?

<?php
    wp_nav_menu(
        array(
            'theme_location'  => 'primary',
            'container_class' => 'collapse navbar-collapse',
            'container_id'    => 'navbarNavDropdown',
            'menu_class'      => 'navbar-nav ml-auto',
            'fallback_cb'     => '',
            'menu_id'         => 'main-menu',
            'depth'           => 2,
            'walker'          => new Understrap_WP_Bootstrap_Navwalker(),
        )
    );
?>

enter image description here

4
  • 2
    Normally the problem here is CSS, any answer will be 100% CSS, it should require any WordPress knowledge other than an inspection of the HTML classes on the ul/li tags. However, your code uses Understrap_WP_Bootstrap_Navwalker which is an unknown class, which means any answer you get here probably won't be usable. You'll need to contact understrap support or abandon using that navwalker
    – Tom J Nowell
    Dec 29, 2021 at 23:14
  • First, I'd try changing the 'depth' argument from 2 to 3.
    – Pat J
    Dec 29, 2021 at 23:16
  • @PatJ tried that to no avail
    – RLM
    Dec 29, 2021 at 23:28
  • 1
    @RLM This post might be helpful if you haven't checked it already: davidstockdalescrapcode.co.uk/understrap-sub-menu-depth
    – Kumar
    Dec 30, 2021 at 5:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.