mirror of
git://develop.git.wordpress.org/
synced 2025-03-23 05:20:01 +01:00
Bundled Themes: Twenty Fourteen: Move skip link to top of body.
Move the skip link to the top of the body content, so it is the first focusable item on the page. Props joedolson, abcd95, manojmaharrshi, vganavda, shailu25. Fixes #62969. git-svn-id: https://develop.svn.wordpress.org/trunk@59914 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c1d2a5d18d
commit
8731d62dc7
@ -33,6 +33,12 @@
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div id="page" class="hfeed site">
|
||||
<a class="screen-reader-text skip-link" href="#content">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Skip to content', 'twentyfourteen' );
|
||||
?>
|
||||
</a>
|
||||
<?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?>
|
||||
<?php if ( get_header_image() ) : ?>
|
||||
<div id="site-header">
|
||||
@ -57,12 +63,6 @@
|
||||
|
||||
<nav id="primary-navigation" class="site-navigation primary-navigation">
|
||||
<button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
|
||||
<a class="screen-reader-text skip-link" href="#content">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Skip to content', 'twentyfourteen' );
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user