What this rule checks
Ensure the document has a main landmark.
Why it matters
A best practice that supports WCAG 1.3.1 and 2.4.1.
This rule is a recommended practice: failing it isn't a WCAG failure on its own, so our reports list it separately from WCAG failures.
How to fix it
- Wrap the page's primary content in a single <main> element. In Shopify, layout/theme.liquid usually wraps {{ content_for_layout }} in <main>.
How to check the fix
- Re-scan the affected pages.
How FixReports finds it
Our scan runs the axe-core rule landmark-one-main in a real Chrome browser on every page it tests, and reports each failing element with its page, its markup and, where it applies, a screenshot.
An automated test confirms that this specific problem is present. It can't tell whether the rest of the page is accessible: some barriers only show up when a person checks the page.