Dropdown menu in responsive broken
-
Hello,
After the latest update I am not able to get my menu to show up on mobile or on a tablet. The button is there, but when you click it, it’s not doing anything on either platform.
I’ve cleared my cache, and even switched to the Author plug in, but it didn’t help. I have also searched the forums and tried out all of the CSS suggestions, but still nothing is working. I’m not very savy when it comes to coding, so I hope I don’t have to do anything major.
My website is http://enjoyfreebies.com
Do you think it’s just a bug with the latest update? Please help!
-
Thanks for using Poet, I’m sorry to hear about this issue.
When visiting the site, I see a Javascript error coming from the Autoptimize plugin. If there is a cache specific to that plugin try emptying it, and then deactivate the plugin temporarily. This should fix the issue with the menu.
The error is coming specifically from the Javascript features in the plugin, so I would try deactivating that part if you continue using Autoptimize.
In Autoptimize try disabling the “force JS into head”-option and add
js/jquery/jquery.jsto the comma-separated list of JS optimization exclusions. that will probably fix your problem.frank (ao dev)
I’m so glad I asked. I went into Auto Optimize and turned off the Java button. Now everything is working again! Thank you guys so much. You’re the best!
Well, if you want all to work but still have JS optimization (which benefits your performance), then do give this a try;
try disabling the “force JS into head”-option and add js/jquery/jquery.js to the comma-separated list of JS optimization exclusions.
🙂
Hi Frank,
I tried to find “force JS into head” but I couldn’t find those exact words anywhere.
I did see all this, however:
$delete_options=array(“autoptimize_cache_clean”, “autoptimize_cache_nogzip”, “autoptimize_css”, “autoptimize_css_datauris”, “autoptimize_css_justhead”, “autoptimize_css_defer”, “autoptimize_css_defer_inline”, “autoptimize_css_inline”, “autoptimize_css_exclude”, “autoptimize_html”, “autoptimize_html_keepcomments”, “autoptimize_js”, “autoptimize_js_exclude”, “autoptimize_js_forcehead”, “autoptimize_js_justhead”, “autoptimize_js_trycatch”, “autoptimize_version”, “autoptimize_show_adv”, “autoptimize_cdn_url”, “autoptimize_cachesize_notice”,”autoptimize_css_include_inline”,”autoptimize_js_include_inline”,”autoptimize_css_nogooglefont”);
Is this the section you are talking about?
that would be
autoptimize_js_forceheadwhen looking under the hood, but it should be easier going to settings -> autoptimize -> show advanced settings -> javascript options -> force js in <head> 🙂Hi Frank,
It doesn’t give me an option for “show advanced settings” anywhere. When I go to settings, it just gives checkboxes for the following:
HTML Options
Optimize HTML Code?JavaScript Options
Optimize JavaScript Code?CSS Options
Optimize CSS Code?CDN Options
CDN Base URL with or edit.Or it gives me the option to edit the code which is where I got that stuff I posted above. Do you think I should delete “autoptimize_js_forcehead” and add “js/jquery/jquery.js” into that code?
can you compare what you have with this screenshot, where in the top right-corner of the main part of the settings-page you see an “show advanced settings”-button?
frank
Oohhhh I see it now. I am so sorry, I did not know where to look. I followed your instructions and disabled force, and added your query. The menu is working fine now.
Thanks again so much for your help! I really appreciate it 🙂
you’re welcome 🙂
The topic ‘Dropdown menu in responsive broken’ is closed to new replies.
