Jump to content

Side bar or secondary nav to anchor links on one page only

Recommended Posts

  • Replies 2
  • Views 870
  • Created
  • Last Reply

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.