Archived topic
Sticky navigation bar is not working
11 replies · Started by linuxwolf on December 9, 2020
Hello mobile version sticky navigation bar is not working even the setting is on, also menu button, search button is not responding in mobile version (sometimes they respond)
Hi there,
Any chance you can disable all plugins except GP Premium to eliminate conflicts from other plugins first?
I'm seeing some console errors:
https://www.screencast.com/t/7VFIu4brhKum
Let me know :)
I use lite speed cache and CDN,
I had disable it. I'll enable it again and see what happens.
I had disable it.
Was the issue fixed when you disable it?
When I had disabled it the mobile search and menu navigation buttons were not responding.
I just enabled it, it's now working. Then buttons are responding when I visit my site with smartphone.
But the header does strange behavior, the logo urgest it's size when you move from one page to another.
I wish I have to not disable Litespeed cache plugin when I write topic on Generatepress.
Hi there,
Elements that require JS, such as Sticky Nav and Menu toggles break because their JS is not being loaded correctly. This could be:
a. Badly combined/minimized JS files - this generally causes them to not work at all.
b. Deferred loading of JS files - this sometimes results in the user having to make multiple taps to trigger the event.
Other issues of jumping elements etc is due to bady optimized CSS. You're Litespeed cache is set to use Critical CSS, unless you know how to write your own Critical CSS i would avoid the Automatic options that caches provide - they generally cause issues.
The bottom line is - the issues are all related to the configuration of your litespeed cache. You should work through the Litespeed documentation to see what is 'breaking' things.
Hi david,
I have made changes in the litespeed plugin, cold you please check if you can see any error in coding such as js, css etc.?
Update#
I still need to work on it. I'll inform after trying fix it.
Ok let us know.
It's working ok I think. What do say? please check.
Tested a couple times and it's working fine to me :)
Thanks leo, Thanks David
Glad we could help :)