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
This commit is contained in:
Joe Dolson 2025-03-16 22:32:22 +00:00
parent aec301558d
commit fe7a69cddf

View File

@ -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">