Make WordPress Core

Changeset 21557


Ignore:
Timestamp:
08/20/2012 07:14:51 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Twelve: re-implement the hiding of toggle element when empty menu is present, see #21562 and r21520 props cfinke.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/js/navigation.js

    r21554 r21557  
    66
    77jQuery( document ).ready( function( $ ) {
    8     if ( $( '#masthead .menu' ).children().length ) {
    9         $( '#masthead h3.assistive-text' ).addClass( 'menu-toggle' );
     8    if ( ! $( '#masthead .menu' ).children().length ) {
     9        $( '#masthead .menu-toggle' ).hide();
    1010    }
    1111
Note: See TracChangeset for help on using the changeset viewer.