Two menus in the same navbar ?

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>
					<div id="navbar" class="navbar-collapse collapse">
						<div class="container">
						<div class="colum-lg-12 col-md-12 ">

						<?php bootstrap_nav(); ?>

					</div><!--/.nav-collapse -->
				</div><!--/.container-fluid -->
		</header><!-- #masthead -->
	<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 ?

Leave a Reply

Your email address will not be published. Required fields are marked *