How to fix skip link on Squarespace

Add a valid, focusable target element (with a matching `id`) for every "Skip to main content" link so keyboard and assistive-technology users can bypass repeated navigation.

Steps for Squarespace

  1. In Squarespace, go to Website → Pages → select any page → click Edit, then open Settings → Advanced → Page Header Code Injection.
  2. Alternatively, use the site-wide injection: Settings → Advanced → Code Injection → Header.
  3. Paste the skip link `<a>` tag and accompanying `<style>` block into the Header injection field (see code snippet below). The skip link will be injected on every page.
  4. Squarespace's main content area uses the selector `#page` or `#content` depending on the template. Inspect your live page with browser DevTools to identify the correct `id` of the main content wrapper, then match the `href` fragment to that `id`.
  5. Because Squarespace does not let you modify core template markup, add `tabindex="-1"` to the target element via JavaScript in the Footer Code Injection: `document.querySelector('#page, #content, main').setAttribute('tabindex', '-1');`
  6. Publish and test with keyboard Tab on the live site.
Official Squarespace documentation ↗

What is skip link?

A "skip link" is a hidden (but keyboard-focusable) hyperlink that sits at the very top of every page, typically labeled "Skip to main content." When activated, it jumps the user past your navigation menus straight to the page's main content area. For this to work, the link's `href` must point to an element on the same page that actually exists and can receive focus — that element is the "skip link target." When the target is missing or has no matching `id`, the skip link goes nowhere, breaking the shortcut entirely.

Keyboard-only users (people who cannot use a mouse) and screen-reader users must tab through every navigation link on every page load if no working skip link exists — on a store with 20 nav items, that means 20 extra keystrokes to reach the first product. This is a WCAG 2.1 Level A failure (Success Criterion 2.4.1 — Bypass Blocks), meaning it exposes your store to accessibility complaints, lawsuits (ADA Title III in the US, EAA in the EU, AODA in Canada), and poor audit scores. Fixing it is a quick-win code change that immediately improves usability for millions of people who rely on keyboard navigation, and signals technical quality to accessibility auditors and automated scanners alike.

See the complete Skip link guide for every platform and the full background.

Not sure if your Squarespace store has this?

Run a free SEOLZ scan — we’ll find skip link and every other issue across your whole site.

Scan my site free

Fix skip link on another platform