- This topic has 13 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
February 25, 2023 at 1:46 am #2546276
Lutz
Hi.
I have a page with an HTML anchor #checkliste – implemented with the elementor widget “menu anchor”.
The anchor works fine – when entering the URL the browser scrolls to the top of the anchor element.
But if I activate GP sticky headers, the sticky header covers the top of the page – so the top of the “anchored” element is partially covered and invisible.
URL and access codse in private information area
-LutzFebruary 25, 2023 at 6:10 am #2546460David
StaffCustomer SupportHi there,
GeneratePress has its own Smooth Scroll option ( in Customizer > General ) which offsets the scroll position for the Sticky Nav to stop this kind of thing…. BUT that option will cause issues if you’re using Elementor as it has Smoot Scroll also which will conflict.
you would need to ask Elementor support if they have a fix for that.
February 26, 2023 at 8:41 am #2547558Lutz
Hi David.
Perhaps my description was ambiguous …I’ve now deactivated Elementor and created a page ONLY with the classic wordpress editor. No more Elementor items are on the page, at all.
=> same effect:Without GP sticky headers: scrolls to the correct y position
WITH GP sticky headers: scrolls 60 pixels too far (which is exact the height of the stiky header bar)I don’t think that could be an Elementor issue …
-Lutz
February 26, 2023 at 10:02 am #2547644David
StaffCustomer SupportThat URL requires a login 🙂
February 27, 2023 at 1:25 am #2548224Lutz
Ok, I gave the login at my first post – you’ll find it in the private data area below.
-LutzFebruary 27, 2023 at 7:31 am #2548591David
StaffCustomer SupportCan you disable any cache/optimization plugins so i can see what scripts are loading?
February 27, 2023 at 7:39 am #2548601Lutz
Done.
-LutzFebruary 27, 2023 at 9:27 am #2548914David
StaffCustomer SupportIn Customizer > General – do you have the GP Smooth Scroll enabled ?
February 27, 2023 at 9:43 am #2548947Lutz
I just tried it – no change …
-LutzFebruary 27, 2023 at 12:04 pm #2549123Ying
StaffCustomer SupportHi Lutz,
I see that you’ve added the
smooth-scrollclass to the section itself, it should’ve been added to the link.I added a menu item with
#myanchoras link, and with thesmooth-scrollclass using developer tool to show you how it would work if all settings are correct:
https://www.screencast.com/t/E7pothFZEFFebruary 28, 2023 at 7:17 am #2549942Lutz
Hi.
Ok, I now understand the idea of the “smooth-scroll” class =;-)
– but this does not solve my problem.I want to send the URL via E-Mail as link to a specific section of the page:
https://akn-test.lvo-webgo.de/scrolltest/#myanchorThis works without sticky header and does not work with sticky header.
-Lutz
February 28, 2023 at 9:00 am #2550228David
StaffCustomer SupportYeah, thats not something we can change, as our script only fires if its from a link with the
smooth-scrollclass.
There are plugins like Page Scroll to ID that do this.OR you need to add the Anchor to a GB Container Block or Group Block, which can have padding added to it to compensate for this.
February 28, 2023 at 9:16 am #2550246Lutz
Hi, thanks!
“Page Scroll to ID” works.
“add the Anchor to a GB Container Block or Group Block” is a good idea, too.
-LutzMarch 1, 2023 at 12:43 am #2550908David
StaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.