Making WordPress.org


Ignore:
Timestamp:
12/21/2015 10:01:12 PM (9 years ago)
Author:
coffee2code
Message:

W.org P2 child theme:: Move 'Skip to content' a11y link higher up on page and provide styling.

Adds .skip-link styles from Twenty Sixteen, giving the link visual styling and making it visible on focus.

Fixes #1482, #1484.
Props SergeyBiryukov.

File:
1 edited

Legend:

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

    r2045 r2221  
    55?>
    66<div id="headline">
     7        <a class="assistive-text skip-link" href="#main"><?php _e( 'Skip to content', 'p2' ); ?></a>
    78        <div class="wrapper">
    89                <h2><a href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h2>
     
    1617    <div role="navigation" class="site-navigation main-navigation">
    1718        <h1 class="assistive-text"><?php _e( 'Menu', 'p2' ); ?></h1>
    18         <div class="assistive-text skip-link"><a href="#main" title="<?php esc_attr_e( 'Skip to content', 'p2' ); ?>"><?php _e( 'Skip to content', 'p2' ); ?></a></div>
    1919
    2020        <?php wp_nav_menu( array(
Note: See TracChangeset for help on using the changeset viewer.