Skip to content

Commit fe7a69c

Browse files
committed
Bundled Themes: Move skip link from #page to body in Twenty Fourteen.
Improvement following [59914] to make the position of the skip to content link consistent across different states and viewports. Props sabernhardt, himanshupathak95, joedolson. Fixes #62969. git-svn-id: https://develop.svn.wordpress.org/trunk@59991 602fd350-edb4-49c9-b593-d223f7449a82
1 parent aec3015 commit fe7a69c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/wp-content/themes/twentyfourteen/header.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232

3333
<body <?php body_class(); ?>>
3434
<?php wp_body_open(); ?>
35+
<a class="screen-reader-text skip-link" href="#content">
36+
<?php
37+
/* translators: Hidden accessibility text. */
38+
_e( 'Skip to content', 'twentyfourteen' );
39+
?>
40+
</a>
3541
<div id="page" class="hfeed site">
36-
<a class="screen-reader-text skip-link" href="#content">
37-
<?php
38-
/* translators: Hidden accessibility text. */
39-
_e( 'Skip to content', 'twentyfourteen' );
40-
?>
41-
</a>
4242
<?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?>
4343
<?php if ( get_header_image() ) : ?>
4444
<div id="site-header">

0 commit comments

Comments
 (0)