showing dropdown at my end https://prnt.sc/qr6fnh
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();
})
})
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 6 years ago by
kuckovic.
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
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>
@sauravhny
Hey thanks man, it works, for both menus!
Great support!