Happy Halloween! Get 20% off GP Premium with the discount code: HALLOWEEN20

Reply To: Mobile Navigation

Home Forums Support Mobile Navigation Reply To: Mobile Navigation

#206998
Tom
Lead Developer
Lead Developer

This script is causing the issue:

<script type="text/javascript">
	jQuery(window).load(function($) {
		var mobile, widthTimer;
		mobile = jQuery( '.menu-toggle' );
			
		function generateCheckWidth() {
			if ( mobile.is( ':visible' ) ) {
				jQuery('.main-navigation').appendTo('.inside-header');
			} else {
				jQuery('.main-navigation').prependTo('.inside-header');
			}
		}
			
		if ( mobile.is( ':visible' ) ) {
			generateCheckWidth();
		}
			
		jQuery(window).resize(function() {
			clearTimeout(widthTimer);
			widthTimer = setTimeout(generateCheckWidth, 100);
		});
	});
</script>

If you remove that (from wp_head hook it looks like), then your mobile menu should stay full width.