Archived topic
Sticky navigation menu on mobile devices
3 replies · Started by Anton on March 31, 2017
Hi Tom!
I try to implement the actions that described in your article about GP & WP optimization.
I have encountered a problem with sticky navigation menu on mobile devices. I installed Autoptimize and when I add all GP scripts to minification then sticky navigation menu not open. If I exclude from minification file navigation.min.js then menu works. How to resolve this?
Also this problem exists for file tinymce.min.js. I have also excluded it.
Thank you.
Hi there,
See this note in the article:
You'll notice we're excluding some scripts including jquery.js. This is to prevent javascript errors in case plugins aren't listing jQuery as a dependency. However, GeneratePress and GP Premium make sure that jQuery is a dependency when needed, so you can try removing all of those exclusions, and make sure to check the Also aggregate inline JS option.
Give that a try :)
Thank you Tom for fast and clear answer! Now all works!
Glad I could help :)