Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (33 sloc)
1.08 KB
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
<!DOCTYPE html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<?php wp_head(); ?> | |
</head> | |
<body <?php body_class(); ?>> | |
<nav class="navbar navbar-expand-md navbar-dark bg-dark"> | |
<div class="container"> | |
<a class="navbar-brand" href="<?php echo esc_url( home_url() ); ?>"> | |
<?php echo esc_html( get_bloginfo( 'name' ) ); ?> | |
</a> | |
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"> | |
<span class="navbar-toggler-icon"></span> | |
</button> | |
<?php | |
wp_nav_menu( | |
array( | |
'theme_location' => 'menu-top', | |
'depth' => 2, | |
'container' => 'div', | |
'container_class' => 'collapse navbar-collapse', | |
'container_id' => 'navbarSupportedContent', | |
'menu_class' => 'nav navbar-nav mr-auto', | |
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback', | |
'walker' => new WP_Bootstrap_Navwalker(), | |
) | |
); | |
dynamic_sidebar( 'navbar' ) | |
?> | |
</div> | |
</nav> |