- This topic has 6 replies, 3 voices, and was last updated 1 month, 2 weeks ago by Rafał.
October 23, 2021 at 8:49 pm #1973247Ryan
I’ve noticed an issue since I switched on the sticky navigation on mobile. When the nav id changes from “sticky-navigation” back to “site-navigation” or back there is a jump in the page. It’s like the height of the “site-navigation” is removed or added to the page and causes a jump. It’s not a huge deal but it doesn’t feel good on mobile to have a page jump like that. Have you noticed this issue? It’s very noticeable here https://www.ryansmithphotography.com/myrtle-beach-wedding-photographers/October 24, 2021 at 4:07 am #1973369DavidStaffCustomer SupportOctober 24, 2021 at 7:47 am #1973470Ryan
Thanks that was a simple fix. I notice the height is set to 0 in your css. I tried going into customizer and resetting the sticky menu height then setting it back. I also tried regenerating external css. So there might be a bug in the theme to check.October 24, 2021 at 8:24 am #1973744DavidStaffCustomer Support
Theres something on your site that is interfering with that script, but i couldn’t see what was blocking it. Generally if that happens i would expect the whole sticky nav to stop working… very peculiar. Hence the simplest fix was to provide some CSS that worked.October 24, 2021 at 8:26 am #1973745Ryan
I do have jquery-migrate blocked because it doesn’t seem needed. Is this still used? I was actually wondering why that was still being loaded because it’s not loaded by default with wordpress anymore.October 25, 2021 at 9:21 am #1974890DavidStaffCustomer Support
Had a little nose around… GP only enqueues jQuery for the Sticky Navigation. Which includes the
jqueryhandle in its dependencies… which turns out includes
jquery-migrate– would have been nice if they updated the WP Codex to let us know that lol
We’ll be changing that in a future update as migrate is not required.
Thanks for pointing that out.
Just to cover – disabling jQuery Migrate won’t affect the sticky nav and it doesn’t break the sizing script… so its something else interfering with that script.December 7, 2021 at 6:08 am #2041108Rafał
Seems you need to go one step farther to fix this.
- You must be logged in to reply to this topic.