Onepager: add anchor id to URL after scroll to section

Hi there

Please help me with this:

How to make it work that the URL in the address bar changes to mypage/#section when I use a onepager menu?

Thank you very much.

Yours
Stephen

Hi there,

Thanks for writing in.

It will require customization which we can’t cover, but it’s related to javascript pushState()/replaceState() like from here https://css-tricks.com/using-the-html5-history-api/

I recommend contacting a web developer :slight_smile:

Thanks!

Aren’t this only a few lines of javascript code you could pass me over, please. I am a good customer for a long time already. :wink:

Hi sStiwano,

Unfortunately, it’s not a simple line of code that you can add and get it working effectively out of the box once added. It will require further development and integration work that is beyond our support scope.

Thanks for understanding.

Solved it with the Plugin “page scroll to id”.

1 Like