mirror of
https://github.com/10h30/trestle.git
synced 2026-07-11 18:56:07 +09:00
Switch to using var to avoid hitting the DOM
This commit is contained in:
@@ -61,7 +61,7 @@ jQuery( document ).ready( function( $ ) {
|
||||
}
|
||||
|
||||
// Allow the use of custom text when using the 'big-button' mobile nav style.
|
||||
if ( $target.is( 'nav' ) && $( 'body' ).hasClass( 'big-button-nav-toggle' ) ) {
|
||||
if ( $target.is( 'nav' ) && $body.hasClass( 'big-button-nav-toggle' ) ) {
|
||||
navText = trestle_vars['mobile_nav_text'];
|
||||
} else {
|
||||
navText = 'Toggle';
|
||||
|
||||
Reference in New Issue
Block a user