Jump to content

Can you create a link from a button to get to a certain 'section' on a page on a site instead of just that page???

Recommended Posts

  • Replies 2
  • Views 1.9k
  • Created
  • Last Reply
Posted

Yes, you can do this by creating "anchor links". Squarespace have a guide here: https://support.squarespace.com/hc/en-us/articles/207135178-Creating-anchor-links but essentially you add a code block at the top of the section you want to link to, and in the code block put:

<p id="section-name"></p>

Then create a link with #section-name added to end end of the page URL slug e.g. /about#section-name. 

So using your site, if you wanted to link to say, the Benefits section of your Subscriptions page, you'd put a code block at the top of the Benefits section:

<p id="benefits"></p>

And then the link to that section would be /subscriptions#benefits

Oh hey! I'm Katy Carlisle, a web designer and trainer who goes by the name SQSP Queen. My pronouns are she/her and I'm based on Vancouver Island in BC 🍁 I've been using Squarespace since 2013, and work mainly with non-profits or freelancers on projects that do good. I love answering questions about Squarespace and don't expect anything in return, but if you do want to say thanks, feel free to buy me a coffee 

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.