Jump to content

Jump to page code snippet

Recommended Posts

Hi,

I always use a piece of code to jump to a certain spot on a page in the navigation. For example, on this website, I have a link set up in navigation to go to "our team", which is just a section on the "our story" page.

For some reason, the code is not working in this case. I've checked it over and over. Any thoughts?

 

Code I use:

link in navigation: *insert page URL*#section-title

code snippet on page: <a name=“section-title"></a> 

Link to comment
  • Replies 2
  • Views 110
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Looks almost correct, revision:

Navigation-link:   /page-url-slug/#section-title
Code block:          <span id=“section-title"></span> 

(Differences are the extra backslash in the link and "id" instead of "name" in the code snippet)

Here's the guide for anchor links:

https://support.squarespace.com/hc/en-us/articles/207135178-Creating-anchor-links

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.