Make WordPress Core


Ignore:
Timestamp:
09/20/2019 11:40:06 AM (5 years ago)
Author:
afercia
Message:

Accessibility: Bundled Theme: Make the TwentyEleven skip link the first focusable element within the body.

Props poena, williampatton.
Fixes #47891.

File:
1 edited

Legend:

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

    r45932 r46195  
    146146            <nav id="access" role="navigation">
    147147                <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
    148                 <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
    149                 <div class="skip-link"><a class="assistive-text" href="#content"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
    150                 <?php if ( ! is_singular() ) : ?>
    151                     <div class="skip-link"><a class="assistive-text" href="#secondary"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
    152                 <?php endif; ?>
    153148                <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn't assigned, the menu with the lowest ID is used. */ ?>
    154149                <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.