Black Friday Sale! Get up to $40 off GP Premium!Learn more

Reply To: Primary Menu changing locations when zooming?

Home Forums Support Primary Menu changing locations when zooming? Reply To: Primary Menu changing locations when zooming?

#189935
Kelly

jk fixed it, I was playing around with this javascript code and forgot about it

<script type=”text/javascript”>
jQuery(window).load(function($) {
var mobile, widthTimer;
mobile = jQuery( ‘.menu-toggle’ );

function generateMoveNav() {
if ( mobile.is( ‘:visible’ ) ) {
jQuery(‘.main-navigation’).insertBefore(‘.site-footer’);
} else {
jQuery(‘.main-navigation’).insertBefore(‘.site-header’);
}
}

if ( mobile.is( ‘:visible’ ) ) {
generateMoveNav();
}

jQuery(window).resize(function() {
clearTimeout(widthTimer);
widthTimer = setTimeout(generateMoveNav, 100);
});
});
</script>

  • This reply was modified 4 years, 7 months ago by Kelly.