Support » Fixing WordPress » Collapsed submenu/navbar with navwalker plugin does not collapse correctly

  • Hello everyone,

    I am currently having trouble with the collapsing navbar for mobile devices for my website:

    When I minimize the window to adjust for mobile browsers, and click on a dropdown option in the navbar, the submenu that pops up does not extend the navbar like I want it to. Instead, it opens up exactly like it does on the desktop version of my site.

    I have used the navwalker class in my functions.php file, and it looks like this:

    <ul class="nav nav-pills nav-justified navbar-inverse" role="navigation">
    					$args = array(
    						'menu' => 'header-menu',
    						'menu_class' => 'nav nav-pills nav-justified navbar-inverse',
    						'container' => 'false',
    						'walker' => new wp_bootstrap_navwalker()
    					wp_nav_menu ( $args );

    I am not sure if this is a known issue, but I searched around, and some people say it might be a problem with versions of wordpress higher than 2.

    If anyone could steer me in the right direction, I would greatly appreciate it.

    Thanks in advance!

  • The topic ‘Collapsed submenu/navbar with navwalker plugin does not collapse correctly’ is closed to new replies.