WordPress.org

Making WordPress.org


Ignore:
Timestamp:
02/12/2019 03:30:32 AM (5 months ago)
Author:
tellyworth
Message:

Plugin dir theme: move skip-link so it's the first focusable element on the page.

See #4109

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php

    r6284 r8227  
    1919
    2020$GLOBALS['pagetitle'] = wp_get_document_title();
     21$GLOBALS['wporg_global_header_options'] = array(
     22    'in_wrapper' => '<a class="skip-link screen-reader-text" href="#main">' . esc_html( 'Skip to content', 'wporg-plugins' ) . '</a>',
     23);
    2124require WPORGPATH . 'header.php';
    2225?>
    2326<div id="page" class="site">
    24     <a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'wporg-plugins' ); ?></a>
    25 
    2627    <div id="content" class="site-content">
    2728        <header id="masthead" class="site-header <?php echo is_home() ? 'home' : ''; ?>" role="banner">
Note: See TracChangeset for help on using the changeset viewer.