Solved SP Page Builder

Anchor position page scroll offset

Asked by Rakesh 3 years ago Last activity 3 years ago

I am using the Helix Ultimate 2 and trying to change the final position of the anchor on the page.

Ofcourse I can create a new section with that ID but that is not logical.

So please help me create a fix for the wrong offset of the page scroll position.

At the moment I need offset: +75

I only found javascripts smooth scrolls with offset for helix 3, none work in the custom JS of the Helix Ultimate template.

There must be a easy solution somewhere

Accepted answer

Marked as the solution
Rashida Rahman Staff

Hi there!

Thanks for your query.

Unfortunately, there is no default option to set offset value in this case.

However, you may try the following code in your custom CSS:

html {
scroll-padding: 75px; /*or whatever*/
}

Hope this helps!

Note: Path towards custom CSS(Joomla 4): System>Site Templates Styles> Click on your current default template name then choose Template Options. Then find custom CSS within the custom code.

https://prnt.sc/5mBuSRh907N3

https://prnt.sc/ooiq-lkMEXr_

https://prnt.sc/nunlX-f5AhK1

Best Regards

2 more replies

Rakesh Asked this

Thank you, this is exactly what I needed.

Rashida Rahman Staff

Glad to know that and you are always welcome:)

Log in to reply.