• Hello!

    I have the same problem with several pages.
    Desktop version works fine, mobile version/menu not – i think before updating to WordPress 5 it worked.

    It′s possible to select items/links in the mobile menu, but nothing happens – no forwarding to the linked page.

    I tried to deactivate all plugins, no change…

    Thx in advance for help

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • showing dropdown at my end https://prnt.sc/qr6fnh

    Thread Starter zeitraum23

    (@zeitraum23)

    Yes the dropdown menu works, you can select items, but then nothing happens…

    @zeitraum23

    I see some jQuery errors on the console.
    This might be whats going wrong.

    Also, your menu is made with a select-box + options, and not traditional links.
    You might consider changing this.

    This is the Error I think is causing this:

    VM158:1 Uncaught ReferenceError: google is not defined
        at eval (eval at <anonymous> (smthemes.js?ver=1663:1), <anonymous>:1:27)
        at smthemes.js?ver=1663:1

    Best regards
    Aris Kuckovic

    please add below script in your footer.php

    jQuery(function () {
        jQuery("#mobile-sec-menu").change(function () {
            location.href = jQuery(this).val();
        })
    })
    • This reply was modified 4 years, 10 months ago by Saurav Sharma.
    • This reply was modified 4 years, 10 months ago by Saurav Sharma.
    Thread Starter zeitraum23

    (@zeitraum23)

    Thx for the fast responses.
    I added the code in the footer.php – no change…

    The code will not execute because of the other jQuery error.
    You’ll need to address this first.

    Looks like it’s a Google Maps error.

    • This reply was modified 4 years, 10 months ago by kuckovic.
    Thread Starter zeitraum23

    (@zeitraum23)

    Ok, I′m reading how i can fix this -> it′s probably an error that occured after the switch to https…

    I will try to fix this, but its strange that a google maps error has sthg to do with the mobile menu….anyway…thx in the meantime…

    @zeitraum23

    No worries.
    Please let me know if you need further assistance ??

    Best regards
    Aris Kuckovic

    Thread Starter zeitraum23

    (@zeitraum23)

    Same error occurs in the menu in desktop version and that menu works, not sure if that error has sthg to do with that problem….needs fixing anyway but mobile menu is more important..

    I will try to change the whole mobile menu….doesn′t look good anyway

    @zeitraum23

    The menu on desktop are ordinary links.
    The mobile menu is processed through jQuery – and will fail, because of the error.

    I agree, you definitely should take a look at the way it’s built.

    Best regards

    you have to include the jQuery l;aibrary in footer.php.
    Add this to your footer.php

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
    <script>
    $(document).ready(function(){
      $("#mobile-sec-menu").change(function () {
            location.href = $(this).val();
        })
    });
    </script>
    Thread Starter zeitraum23

    (@zeitraum23)

    @sauravhny

    Hey thanks man, it works, for both menus!

    Great support!

    great ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Mobile Menu isn′t working’ is closed to new replies.