Scroll sections with anchor links to top of viewport instead bottom of header

Hi, I refer to


and

It is still very complicated to ensure that sections with anchor links are not scrolled to the bottom edge of the (transparent) header but to the top edge of the screen.
How can I achieve this without having to cheat the scrolling with positive margins at the top and negative margins at the bottom of each section?
Could you get an option here to set where anchor links scroll: to the top of the viewport or to the bottom of the header?

Hey @Daryl_Shaw,

Please provide the updated WP details so I can log in and check your site again. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Best Regards.

Hey Daryl,

Could you get an option here to set where anchor links scroll: to the top of the viewport or to the bottom of the header?

Regretfully there isn’t an option for this one. By default, the theme’s behavior will treat the Section always below the header. There isn’t also a way for the function to figure out whether you are using a transparent header or with a solid color.

Hope this makes sense.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.