[Resolved] Primary Menu changing locations when zooming?

Home Forums Support [Resolved] Primary Menu changing locations when zooming?

Home Forums Support Primary Menu changing locations when zooming?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #189934
    Kelly

    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

    #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 7 years, 12 months ago by Kelly.
    #189952
    Tom
    Lead Developer
    Lead Developer

    Glad you got it fixed 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.