Jump to content

Skip link code is skipping to site title, not main content

Recommended Posts

I have successfully added a Skip Link item before my site title. My goal is to allow keyboard navigation users (accessibility) to skip to the main content on all of the pages on my website. However, the skip is going to the site title, which is the next link, instead of jumping past the menu to the main content of the page. 

I injected the following code into the "Advanced" section of the home page in the page editing menu. What's wrong with this code?

<!-- Skip Link HTML -->

<a id="skip-link" href="#main-content" style="position: absolute; top: -40px; left: -40px; background: #000; color: #fff; padding: 10px; z-index: 1000;">Skip to Main Content</a>

I'm using version 7.0 with the Hayden template.

 

Link to comment
  • Replies 1
  • Views 203
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Can you share your website URL?

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) 
 🖼️ Gallery Lightbox 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.