Ticket #47891: 47891.patch
File 47891.patch, 3.0 KB (added by , 5 years ago) |
---|
-
wp-content/themes/twentyeleven/functions.php
903 903 do_action( 'wp_body_open' ); 904 904 } 905 905 endif; 906 907 /** 908 * Include a skip to content link at the top of the page so that users can bypass the menu. 909 * 910 * @since Twenty Eleven 3.4 911 */ 912 function twentyeleven_skip_link() { 913 echo '<div class="skip-link"><a class="assistive-text" href="#content">' . esc_html__( 'Skip to primary content', 'twentyeleven' ) . '</a></div>'; 914 if ( ! is_singular() ) { 915 echo '<div class="skip-link"><a class="assistive-text" href="#secondary">' . esc_html__( 'Skip to secondary content', 'twentyeleven' ) . '</a></div>'; 916 } 917 } 918 add_action( 'wp_body_open', 'twentyeleven_skip_link', 5 ); -
wp-content/themes/twentyeleven/header.php
145 145 146 146 <nav id="access" role="navigation"> 147 147 <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; ?>153 148 <?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. */ ?> 154 149 <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> 155 150 </nav><!-- #access --> -
wp-content/themes/twentyeleven/style.css
502 502 height: 1px; 503 503 width: 1px; 504 504 } 505 #access a.assistive-text:focus, 505 506 a.assistive-text:focus, 506 507 .screen-reader-text:hover, 507 508 .screen-reader-text:active, 508 509 .screen-reader-text:focus { 509 background: #eee; 510 border-bottom: 1px solid #ddd; 511 color: #1982d1; 510 background-color: #f1f1f1; 511 box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); 512 512 clip: auto !important; 513 font-size: 12px; 513 clip-path: none; 514 color: #21759b; 515 display: block; 516 font-size: 14px; 517 font-weight: bold; 514 518 height: auto; 515 position: absolute; 516 text-decoration: underline; 517 top: 0; 518 left: 7.6%; 519 left: 6px; 520 line-height: normal; 521 padding: 17px 22px 15px; 522 text-decoration: none; 523 top: 7px; 519 524 width: auto; 525 z-index: 100000; 526 /* Above WP toolbar. */ 520 527 } 521 528 522 523 529 /* =Header 524 530 ----------------------------------------------- */ 525 531