Make WordPress Core

Changeset 59913


Ignore:
Timestamp:
03/03/2025 08:23:49 PM (6 days ago)
Author:
joedolson
Message:

Bundled Themes: Twenty Thirteen: 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, sabernhardt, abcd95, manojmaharrshi, shailu25, audrasjb, krupajnanda.
Fixes #62968.

File:
1 edited

Legend:

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

    r59907 r59913  
    2323    <?php wp_body_open(); ?>
    2424    <div id="page" class="hfeed site">
     25        <a class="screen-reader-text skip-link" href="#content">
     26            <?php
     27            /* translators: Hidden accessibility text. */
     28            _e( 'Skip to content', 'twentythirteen' );
     29            ?>
     30        </a>
    2531        <header id="masthead" class="site-header">
    2632        <?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?>
     
    3339                <nav id="site-navigation" class="navigation main-navigation">
    3440                    <button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
    35                     <a class="screen-reader-text skip-link" href="#content">
    36                         <?php
    37                         /* translators: Hidden accessibility text. */
    38                         _e( 'Skip to content', 'twentythirteen' );
    39                         ?>
    40                     </a>
    4141                    <?php
    4242                    wp_nav_menu(
Note: See TracChangeset for help on using the changeset viewer.