mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 07:10:00 +01:00
Bundled Themes: Twenty Fourteen: Move skip link to top of body.
Move the skip link to the top of the body content, so it is the first focusable item on the page. Props joedolson, abcd95, manojmaharrshi, vganavda, shailu25. Fixes #62969. Built from https://develop.svn.wordpress.org/trunk@59914 git-svn-id: http://core.svn.wordpress.org/trunk@59256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f0ea8012b4
commit
3e3b488116
@ -33,6 +33,12 @@
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div id="page" class="hfeed site">
|
||||
<a class="screen-reader-text skip-link" href="#content">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Skip to content', 'twentyfourteen' );
|
||||
?>
|
||||
</a>
|
||||
<?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?>
|
||||
<?php if ( get_header_image() ) : ?>
|
||||
<div id="site-header">
|
||||
@ -57,12 +63,6 @@
|
||||
|
||||
<nav id="primary-navigation" class="site-navigation primary-navigation">
|
||||
<button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
|
||||
<a class="screen-reader-text skip-link" href="#content">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Skip to content', 'twentyfourteen' );
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59913';
|
||||
$wp_version = '6.8-alpha-59914';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user