Last active
December 21, 2021 09:10
-
-
Save krogsgard/6386357 to your computer and use it in GitHub Desktop.
This is an example of the older small-menu handling with the part of the header and .js files for the _s theme that are relevant
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
<header id="masthead" class="site-header" role="banner"> | |
<hgroup> | |
<h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> | |
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> | |
</hgroup> | |
<nav role="navigation" class="site-navigation main-navigation"> | |
<h1 class="assistive-text"><?php _e( 'Menu', '_s' ); ?></h1> | |
<div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', '_s' ); ?>"><?php _e( 'Skip to content', '_s' ); ?></a></div> | |
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> | |
</nav> | |
</header><!-- #masthead .site-header --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment