Adaptive Posted February 12, 2021 Share Posted February 12, 2021 Site URL: https://armadillo-deer-rbyp.squarespace.com/why-collinson Hi guys This site is still work in progress but the client has just asked if I can add a side bar or secondary nav to this page https://armadillo-deer-rbyp.squarespace.com/why-collinson Password is: Garstang which would enable anchor links to the various "sections' within the page. Is this possible? Cheers Link to comment
dvgdvgdvg Posted February 12, 2021 Share Posted February 12, 2021 If your question is whether you can create and use anchor links in Squarespace, the answer is yes, and you can use them anywhere you can use regular links (so you could build a sidebar or secondary navigation section and populate with anchor links). Here's an article that explains how to create and use anchor links: https://support.squarespace.com/hc/en-us/articles/207135178-Creating-anchor-links In my experience, you also have to add a "scroll-behavior" setting to your custom CSS to make the links work. This is the setting if you want a smooth scroll down to the section: html { scroll-behavior: smooth; } And this is the setting if you want it to jump right to the section without a transition: html { scroll-behavior: auto; } If this doesn't work for you, there are some other suggested solutions in this forum post you could try: Link to comment
MichaelS Posted February 18, 2021 Share Posted February 18, 2021 Injecting this code appears to enable the desired smooth scrolling effect in Chrome, but not in Safari. We have many visitors who use Safari. How can we get smooth scrolling for Safari as well??? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.