Move skip-to-content link to top to make it first focusable element for keyboard navigation.

This commit is contained in:
Morten Rand-Hendriksen 2014-05-16 00:43:23 -07:00
parent 9a6b539bba
commit 4df5790db7
1 changed files with 2 additions and 3 deletions

View File

@ -20,6 +20,7 @@
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', '_s' ); ?></a>
<header id="masthead" class="site-header" role="banner">
<div class="site-branding">
@ -29,8 +30,6 @@
<nav id="site-navigation" class="main-navigation" role="navigation">
<h1 class="menu-toggle"><?php _e( 'Menu', '_s' ); ?></h1>
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', '_s' ); ?></a>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->