Archived topic
Hamburger Menu button (and Magnify glass) on Mobile not opening.
9 replies · Started by lemonrockcompany on January 6, 2022
Hi: I'm having issues on mobile. The hamburger menu button along with the magnify search button do not respond in Mobile. Any suggestions on what I should be looking at?
Site is: https://www.urbanorganicyield.com/
Hi there,
its to do with WP Rockets javascript optimizations - can you disable the JS optimizations in WP Rocket to see which one is causing the problem.
Hi David. That did the trick - turned off "Load JavaScript deferred'. It's funny though...I switch it back on, but it works now.
For the future, if it is not working again, is it possible to give me the JavaScript file so that I can exclude it within WPRocket.
Hi there,
For the future, if it is not working again, is it possible to give me the JavaScript file so that I can exclude it within WPRocket.
This won't require scripting as this is something you set on WP Rocket's UI.
https://docs.wp-rocket.me/article/976-exclude-files-from-defer-js
You basically add the path to GP's scripts. You can try wildcard exclusions from these directories on your site.
/wp-content/plugins/gp-premium/(.*)(
/wp-content/themes/generatepress/(.*)(
Thanks!
If it doesn't work immediately, you'll likely have to purge cache.
If it doesn't work after purging the cache, you may have to correct the exclusion path. :)
No problem. :D
Hi GeneratePress:
The Hamburger menu and Search magnify glass are not working again (both desktop and mobile) - even after switching ALL JavaScript options within WP Rocket. Please advise on you think the issue is.
I would recommend speaking to WP Rocket - if i disable WP Rocket on the front end then the menus and search work correctly. So there is something else their plugin is doing thats causing a problem.
Hi David.. Thanks, I will deactivate WPRocket to see if that works. BTW, I've noticed through reading several support forum tickets that you/GeneratPress team do not use WPRocket, rather you use Autoptimize? If so, what caching plugin do you use along with Autoptimize?
No cache plugins just server side caching.
Autoptimize we use sparingly to minify and sometimes combine CSS / JS files.
Favorite optimization plugin at the moment is PerfMatters - has a lot of functions built in and Bryans support is great.