Anchor Position Page Scroll Offset - Question | JoomShaper

Anchor Position Page Scroll Offset

R

Rakesh

SP Page Builder 1 year 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

0
3 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 1 year ago #111023

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

0
R
Rakesh
Accepted Answer
1 year ago #111705

Thank you, this is exactly what I needed.

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 1 year ago #111935

Glad to know that and you are always welcome:)

0