I added this code to hide the section id from the browser widow. The code works and hides the section id. The problem is that now instead of scrolling directly to the section it cuts part of the section off, scrolling into the section itself. I would love to find a fix for this or another method of hiding section id’s
If you go to the published site and choose any button you will see exactly what I am referring to.
@PixelGeek I can try that. The thing is it was working perfect before I added the code. Is there another way to hide the section id that won’t mess with anything else?
In short: Create a div and give it html tag HEADER in a settings panel. Make it fixed position. Move navigation inside this header and make it position relative or auto. Then browser will count bottom line of the header as a top line of the browser window.
Webflow’s smooth scrolling code relies on the standard way of parsing out the #section_name from standard URLs, and it looks like that script completely rewrites them into name attributes. Because of that, unfortunately this script is not compatible with our scrolling code
Just curious, why do you want to hide the section ID from the URL? It can actually harm usability in that it becomes harder to link to a specific portion of the page.