Jump to content

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

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.