Make WordPress Core

Changeset 59991


Ignore:
Timestamp:
03/16/2025 10:32:22 PM (6 weeks ago)
Author:
joedolson
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/header.php

    r59914 r59991  
    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() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.