How to create smooth scroll anchor links in Squarespace 7.0 & 7.1
What are anchor links?
Anchor links are hyperlinks that allow visitors to jump from one location of a website page to another with a single click. Anchor links are a user-friendly way of navigating your visitors through text-heavy pages or to showcase your most important content. They create a seamless website user experience, all while giving your website an extra touch to attention to detail.
In this tutorial, we’ll walk through the quick and easy steps to add anchor links to a Squarespace 7.0 or 7.1.
Squarespace 7.1
1. In Edit Mode, go to the section you would like your visitors to navigate to via hyperlink
2. Click Edit Section in the top right corner of the section
3. Locate Anchor Link and add a unique anchor link label
4. Click Copy Link
5. Add a text block & anchor link title
6. Select text & add a link
7. Paste link
8. Save!
Add smooth scroll
Go to Custom CSS (Website > Website Tools > Custom CSS)
Copy and paste the CSS below
Click “Save”
// SMOOTH SCROLL html { scroll-behavior: smooth; }
Squarespace 7.0
Step 1:
Create a anchor tag with a code block
In Edit Mode, go to the section you would like your visitors to navigate to via hyperlink
Add a Code Block at the top of the section
Copy and paste the code below
Rename “anchorlink” to your preference — ex. “about”
<a name="anchorlink"></a>
Step 2:
Add a hyperlink to the page
Add a text block, button or image in desired location
To set the destination of the anchor link, use a # followed by the word used to replace “anchorlink”
EXAMPLE: #anchorlink or #about
For text links: make sure to click “Apply”
Step 3:
Add smooth scroll
Go to Custom CSS (Website > Website Tools > Custom CSS)
Copy and paste the CSS below
Click “Save”
// SMOOTH SCROLL html { scroll-behavior: smooth; }
All set!
USE DISCOUNT CODE STYLEDSQUARE10 TO SAVE 10% OFF YOUR SQUARESPACE SUBSCRIPTION
* Disclaimer: This post contains affiliate links. We may earn a commission should you chose to sign up for Squarespace using our link. Affiliate links are a great way to show your support for our content with no additional cost to you!