fixing .container-fluid in navbar bug

This commit is contained in:
Holger Könemann 2017-01-19 11:29:07 +01:00
parent 871f279d32
commit fda8575b1a
1 changed files with 6 additions and 3 deletions

View File

@ -35,7 +35,9 @@ $container = get_theme_mod( 'understrap_container_type' );
<nav class="navbar navbar-toggleable-md navbar-inverse bg-inverse"> <nav class="navbar navbar-toggleable-md navbar-inverse bg-inverse">
<div class="<?php echo esc_html( $container ); ?>"> <?php if ( 'container' == $container ) : ?>
<div class="container">
<?php endif; ?>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
@ -64,8 +66,9 @@ $container = get_theme_mod( 'understrap_container_type' );
'walker' => new WP_Bootstrap_Navwalker(), 'walker' => new WP_Bootstrap_Navwalker(),
) )
); ?> ); ?>
<?php if ( 'container' == $container ) : ?>
</div><!-- .container --> </div><!-- .container -->
<?php endif; ?>
</nav><!-- .site-navigation --> </nav><!-- .site-navigation -->