Site logo

Archived topic

Primary Menu changing locations when zooming?

2 replies · Started by Kelly on April 27, 2016

Viewing posts 1–3 of 3

Hi,
For some reason the my Primary Menu is moving locations when I zoom in and Out and I can't figure out why.
555healthandwellness.com

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>

Glad you got it fixed :)

This archived topic is closed to new replies.