Changeset 46195 for trunk/src/wp-content/themes/twentyeleven/functions.php
- Timestamp:
- 09/20/2019 11:40:06 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/functions.php
r46117 r46195 913 913 } 914 914 endif; 915 916 /** 917 * Include a skip to content link at the top of the page so that users can bypass the menu. 918 * 919 * @since Twenty Eleven 3.4 920 */ 921 function twentyeleven_skip_link() { 922 echo '<div class="skip-link"><a class="assistive-text" href="#content">' . esc_html__( 'Skip to primary content', 'twentyeleven' ) . '</a></div>'; 923 if ( ! is_singular() ) { 924 echo '<div class="skip-link"><a class="assistive-text" href="#secondary">' . esc_html__( 'Skip to secondary content', 'twentyeleven' ) . '</a></div>'; 925 } 926 } 927 add_action( 'wp_body_open', 'twentyeleven_skip_link', 5 );
Note: See TracChangeset
for help on using the changeset viewer.