diff --git a/includes/js/theme-jquery.js b/includes/js/theme-jquery.js index 488da5e..36b190b 100755 --- a/includes/js/theme-jquery.js +++ b/includes/js/theme-jquery.js @@ -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';