I would like to add a dropdown menu at the right side of my menu but everything I’ve found for now doesn’t work. When I declare a second menu with a new navwalker, nothing loads anymore and my site stays white (blank).

Here is my header

			<nav class="navbar navbar-inverse">
				<div class="col-md-10">

				<div class="container">
					<div class="row">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle collapsed col-md-12 col-lg-12 col-xs-12 col-sm-12" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
					</div>
				</div>
					<div id="navbar" class="navbar-collapse collapse">
						<div class="container">
						<div class="colum-lg-12 col-md-12 ">

						<?php bootstrap_nav(); ?>
</div>


					</div><!--/.nav-collapse -->
				</div><!--/.container-fluid -->
			</nav>
		</header><!-- #masthead -->
	</div>
</div>
	<div id="content" class="site-content">

And here is my function.php

function bootstrap_nav()
		{
			wp_nav_menu( array(
				'theme_location'    => 'header-menu',
				'depth'             => 2,
				'container'         => 'false',
				'menu_class'        => 'nav navbar-nav',
				'fallback_cb'       => 'wp_bootstrap_navwalker::fallback',
				'walker'            => new wp_bootstrap_navwalker())
			);
		}

Thank you

Read more here: Two menus in the same navbar ?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: