Created
September 20, 2018 06:55
-
-
Save madeas/81b6a52a50acbcd240082a60de697289 to your computer and use it in GitHub Desktop.
for Article! Navbar B-4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav class="navbar navbar-expand-md navbar-dark bg-dark"> | |
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarDropdown" aria-controls="navbarDropdown" aria-expanded="false" aria-label="Toggle navigation"> | |
<span class="navbar-toggler-icon"></span> | |
</button> | |
<a class="navbar-brand" href="<?php echo esc_url( home_url('/') ); ?>"><?php bloginfo('name'); ?></a> | |
<div class="collapse navbar-collapse" id="navbarDropdown"> | |
<?php | |
wp_nav_menu( array( | |
'theme_location' => 'navbar', | |
'container' => false, | |
'menu_class' => '', | |
'fallback_cb' => '__return_false', | |
'items_wrap' => '<ul id="%1$s" class="navbar-nav mr-auto mt-2 mt-lg-0 %2$s">%3$s</ul>', | |
'depth' => 2, | |
'walker' => new bootstrap_4_walker_nav_menu() | |
) ); | |
?> | |
<?php get_template_part('searchform'); ?> | |
</div> | |
</nav> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment