Making WordPress.org

Changeset 9927


Ignore:
Timestamp:
05/26/2020 12:31:05 AM (4 years ago)
Author:
dufresnesteven
Message:

Accessibility: Add skip links that moves users to #headline.

See: https://meta.trac.wordpress.org/ticket/4109

File:
1 edited

Legend:

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

    r2044 r9927  
    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}
     7$wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#headline">' . esc_html( 'Skip to content', 'make-wporg' ) . '</a>';
    38require( WPORGPATH . 'header.php' );
    49?>
Note: See TracChangeset for help on using the changeset viewer.