Twenty Twelve: re-implement the hiding of toggle element when empty menu is present, see #21562 and r21520 props cfinke.
git-svn-id: https://develop.svn.wordpress.org/trunk@21557 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9bdc159632
commit
35ad2034b2
@ -5,8 +5,8 @@
|
||||
*/
|
||||
|
||||
jQuery( document ).ready( function( $ ) {
|
||||
if ( $( '#masthead .menu' ).children().length ) {
|
||||
$( '#masthead h3.assistive-text' ).addClass( 'menu-toggle' );
|
||||
if ( ! $( '#masthead .menu' ).children().length ) {
|
||||
$( '#masthead .menu-toggle' ).hide();
|
||||
}
|
||||
|
||||
$( '.menu-toggle' ).off( 'click' ).click( function() {
|
||||
|
Loading…
Reference in New Issue
Block a user