To create anchor links in Webflow without altering the site address when clicked on, you can follow these steps:
1. Select the element that you want to link to, such as a section, div, or heading.
2. In the element's settings panel, go to the "Settings" tab.
3. Scroll down to the "ID attributes" section and enter a unique ID for that element. Make sure the ID doesn't contain any spaces or special characters.
4. Once you've set the ID, publish or preview your site to see the change in action.
Now, to create the actual anchor link:
1. Select the element that you want to use as the anchor link, such as a button or text link.
2. In the link settings panel, instead of entering a URL, use the syntax "#" followed by the ID you set for the target element. For example, if the ID is "services-section", the anchor link should be "#services-section".
3. Customize the link appearance and style as needed.
4. Publish or preview your site to test the anchor link.
When you click on the anchor link, it will smoothly scroll to the target element on the same page, without altering the site address. This provides a seamless user experience and is especially useful for long pages with multiple sections or a table of contents style navigation.