Make WordPress Core


Ignore:
Timestamp:
03/15/2015 08:00:57 PM (9 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: add ARIA attributes to menu toggle. See #31527.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentythirteen/header.php

    r29181 r31785  
    4343                    <button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
    4444                    <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
    45                     <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
     45                    <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'menu_id' => 'primary-menu' ) ); ?>
    4646                    <?php get_search_form(); ?>
    4747                </nav><!-- #site-navigation -->
Note: See TracChangeset for help on using the changeset viewer.