Making WordPress.org

Changeset 8258


Ignore:
Timestamp:
02/15/2019 08:13:27 AM (6 years ago)
Author:
tellyworth
Message:

Breathe: add skip-to-content link.

See #4109

File:
1 edited

Legend:

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

    r6490 r8258  
    11<?php
    22$GLOBALS['pagetitle'] = wp_get_document_title();
     3global $wporg_global_header_options;
     4if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
     5    $wporg_global_header_options['in_wrapper'] = '';
     6$wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';
    37require WPORGPATH . 'header.php';
    48?>
     
    1418
    1519    <nav id="site-navigation" class="navigation-main clear" role="navigation">
    16         <div class="screen-reader-text skip-link"><a href="#content" title="<?php _e( 'Skip to content', 'wporg' ); ?>"><?php _e( 'Skip to content', 'wporg' ); ?></a></div>
    17 
    1820        <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => false, 'depth' => 1 ) ); ?>
    1921    </nav><!-- .navigation-main -->
Note: See TracChangeset for help on using the changeset viewer.