mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 22:10:02 +01:00
Bundled Themes: Twenty Thirteen: 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, sabernhardt, abcd95, manojmaharrshi, shailu25, audrasjb, krupajnanda. Fixes #62968. git-svn-id: https://develop.svn.wordpress.org/trunk@59913 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
81743366e7
commit
c1d2a5d18d
@ -22,6 +22,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', 'twentythirteen' );
|
||||
?>
|
||||
</a>
|
||||
<header id="masthead" class="site-header">
|
||||
<?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?>
|
||||
<a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>>
|
||||
@ -32,12 +38,6 @@
|
||||
<div id="navbar" class="navbar">
|
||||
<nav id="site-navigation" class="navigation main-navigation">
|
||||
<button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
|
||||
<a class="screen-reader-text skip-link" href="#content">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Skip to content', 'twentythirteen' );
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user