Skip links on a Shopify theme: what WCAG 2.4.1 requires

Published 14 November 2026 · Last updated · General information, not legal advice

On a Shopify store the header, search, cart button and navigation appear on almost every page. A mouse user can ignore that block and click the product. A keyboard or screen reader user has to move through it first, on every page, unless the theme gives them a way around it. WCAG 2.4.1 Bypass Blocks, a Level A requirement, says a mechanism must be available to bypass blocks of content that are repeated on multiple web pages.12

This is general accessibility guidance, not legal advice. The usual mechanism on a Shopify theme is a skip link.

What WCAG 2.4.1 actually requires

The success criterion is short: a mechanism is available to bypass blocks of content that are repeated on multiple web pages.2 The Understanding document explains the intent: people who navigate sequentially should be able to reach the primary content more directly, instead of tabbing through the header and navigation on every page.1

Repeated blocks include navigation links and header content. Small repeated phrases or a single link are not treated as blocks for this rule. The criterion applies to pages that belong together, such as the pages of one store, not to two unrelated sites that happen to share a word.1

A skip link is not the only possible mechanism. Headings and landmarks also help people who use a screen reader to jump. WCAG still promotes that structural markup, under 1.3.1. A skip link remains the method that works for keyboard users who are not using a screen reader's heading list.1

Why this shows up on Shopify themes

Shopify layouts are the files that wrap every template. They are the right place for content that should repeat on many page types, including the header and footer, and the required content_for_layout object that prints the page's main content.4 Because the header lives in the layout, it is repeated on product, collection, cart and content pages. That is exactly the pattern 2.4.1 is aimed at.

Shopify's own accessibility guidance for themes says a skip link should be available, and visible when focused, so people can skip past common content and reach the page content quickly.3

How Dawn does it

Shopify's free Dawn theme puts a skip link at the start of the body, before the header group, and points it at the main element.5

<a class="skip-to-content-link button visually-hidden" href="#MainContent">
{{ 'accessibility.skip_to_text' | t }}
</a>

<main id="MainContent" class="content-for-layout focus-none" role="main" tabindex="-1">
{{ content_for_layout }}
</main>

Three details in that pattern are worth copying:

  • The link is the first focusable element in the body, so the first Tab press lands on it.
  • The class visually-hidden keeps it off-screen until it is focused, which matches Shopify's "visible when focused" guidance.3
  • The target is a main landmark with a stable id and tabindex="-1", so when the link is activated the browser can move focus to the main content, not just scroll to it.

The link text comes from Dawn's translation string, so it can be translated with the rest of the theme. A clear English default is "Skip to content" or "Skip to main content".

How to add a skip link to your theme

  1. Open layout/theme.liquid (or the layout your templates actually use).4
  2. Just after the opening <body> tag, add a link whose href is the id of your main content, for example href="#MainContent".
  3. Give the main wrapper that id if it does not already have one. A <main> element, or a container with role="main", is the right target. Add tabindex="-1" so it can receive focus.
  4. Style the link so it is not visible until it is focused, and so the focused state is easy to see against the header.
  5. Do not place the link after the header. If a user has to tab through the navigation to reach the skip link, it has failed its job.

If you use a header app or a page-builder section for navigation, the skip link still belongs in the layout, in front of those sections, because the layout is what wraps every page.

A one-minute test

  1. Open a product page, then a collection page, then the home page. Reload each one and press Tab once. The skip link should appear and be the first focus stop.
  2. Press Enter. Focus should move to the main content. The next Tab should land on a link or control in the page, not back in the header.
  3. With a screen reader, confirm the link has a clear name, such as "Skip to content", and that activating it moves the reading position.

If the link is in the source but never appears on focus, the "visually hidden" style may also be hiding it when it is focused. If the page jumps but the next Tab goes back to the header, the target is probably missing tabindex="-1", so focus never actually moved.

Keep checking after theme and app updates

A theme update, a new header app or a change to the layout can drop the skip link or move it below the navigation. Re-run the keyboard test after those changes. For a wider keyboard pass, see how to test your website with only a keyboard, and for the theme as a whole, how to make a Shopify theme accessible.

Jralo for Shopify, our app, checks your homepage and up to five linked pages against the WCAG 2.2 A and AA rules that automated testing can check, and keeps a dated record of every check; ongoing monitoring are on the paid Site plan.6 Automated checks will not always confirm a skip link's focus behaviour, so keep the short test above as well. You can install Jralo from the Shopify App Store; it is free to install. Disclosure: Jralo is our own product, made by Misimi Corp.

What else do people ask?

Is a skip link required by WCAG?

WCAG 2.4.1 requires a mechanism to bypass blocks of content that are repeated on multiple pages. A skip link is the usual way to do that. Headings and landmarks also help, but a visible-on-focus skip link is the method most keyboard users can rely on in a theme layout.

Where should the skip link go in a Shopify theme?

In the layout file, usually layout/theme.liquid, as the first focusable element inside the body, before the header. Point it at the main content region's id. Shopify's Dawn theme puts a skip-to-content link just after the opening body tag, with href="#MainContent".

Can I hide the skip link until someone tabs to it?

Yes. Shopify's theme accessibility guidance says the skip link should be available and visible when focused, so keyboard users can see it, while it can stay visually hidden until then.

How can Jralo help?

Jralo checks Shopify stores and other sites against the WCAG 2.2 A and AA rules that automated testing can check, and keeps a dated record of every check. A skip link still needs a short keyboard test, because automated tools do not always confirm that the link is first in the focus order and that the target receives focus.

Check your site now

Jralo's free check tests your homepage and up to five pages for accessibility (WCAG 2.2 A and AA) and website QA problems, and tells you which countries' accessibility laws are likely relevant to you. No sign-up.

Run the free check

Where do these facts come from?

Every number and legal statement in this post links to one of these sources, read on 14 November 2026.

  1. W3C: Understanding WCAG 2.2, Success Criterion 2.4.1 Bypass Blocks
  2. W3C: Web Content Accessibility Guidelines (WCAG) 2.2, Success Criterion 2.4.1
  3. Shopify.dev: Accessibility best practices for Shopify themes
  4. Shopify.dev: Theme architecture — Layouts
  5. Shopify Dawn theme source: layout/theme.liquid
  6. Shopify App Store: Jralo listing

More questions

What should you read next?