Changing menu markup to alpha6

This commit is contained in:
Holger Könemann 2017-01-06 19:51:53 +01:00
parent de10cc55af
commit ddfa8d1344
1 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ $container = get_theme_mod( 'understrap_container_type' );
<a class="skip-link screen-reader-text sr-only" href="#content"><?php _e( 'Skip to content', <a class="skip-link screen-reader-text sr-only" href="#content"><?php _e( 'Skip to content',
'understrap' ); ?></a> 'understrap' ); ?></a>
<nav class="navbar navbar-dark bg-inverse site-navigation" itemscope="itemscope" <nav class="navbar navbar-inverse bg-inverse site-navigation" itemscope="itemscope"
itemtype="http://schema.org/SiteNavigationElement"> itemtype="http://schema.org/SiteNavigationElement">
<div class="<?php echo esc_html( $container ); ?>" > <div class="<?php echo esc_html( $container ); ?>" >
@ -42,9 +42,9 @@ $container = get_theme_mod( 'understrap_container_type' );
<div class="navbar-header"> <div class="navbar-header">
<!-- .navbar-toggle is used as the toggle for collapsed navbar content --> <!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
data-target=".exCollapsingNavbar" aria-controls="exCollapsingNavbar" aria-expanded="false" <span class="navbar-toggler-icon"></span>
aria-label="Toggle navigation"></button> </button>
<!-- Your site title as branding in the menu --> <!-- Your site title as branding in the menu -->
<?php if ( ! has_custom_logo() ) { ?> <?php if ( ! has_custom_logo() ) { ?>
@ -62,8 +62,8 @@ $container = get_theme_mod( 'understrap_container_type' );
<?php wp_nav_menu( <?php wp_nav_menu(
array( array(
'theme_location' => 'primary', 'theme_location' => 'primary',
'container_class' => 'collapse navbar-toggleable-xs exCollapsingNavbar', 'container_class' => 'collapse navbar-collapse',
'container_id' => 'exCollapsingNavbar', 'container_id' => 'navbarNav',
'menu_class' => 'nav navbar-nav', 'menu_class' => 'nav navbar-nav',
'fallback_cb' => '', 'fallback_cb' => '',
'menu_id' => 'main-menu', 'menu_id' => 'main-menu',