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. Built from https://develop.svn.wordpress.org/trunk@59991 git-svn-id: http://core.svn.wordpress.org/trunk@59333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -32,13 +32,13 @@
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<a class="screen-reader-text skip-link" href="#content">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Skip to content', 'twentyfourteen' );
|
||||
?>
|
||||
</a>
|
||||
<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">
|
||||
|
||||
Reference in New Issue
Block a user