How to fix landmark no duplicate main on PrestaShop
Find and remove every duplicate `<main>` element or `role="main"` attribute so that exactly one main landmark exists on each page.
Steps for PrestaShop
- Navigate to your active theme folder at /themes/<your-theme>/templates/. Open _layouts/layout-full-width.tpl (and other layout .tpl files).
- Search for '<main' and 'role="main"'. Keep only the one wrapping the central content block ({block name='content'}) and change any others to '<div>'.
- Also check header.tpl and footer.tpl in _partials/ for stray main landmark usage.
- Clear the PrestaShop cache under Advanced Parameters → Performance → Clear cache, then verify with the axe extension.
What is landmark no duplicate main?
Every web page should have exactly one "main" landmark — the HTML `<main>` element (or any element with `role="main"`) — that wraps the primary content of that page. This landmark is part of the ARIA landmark system, which acts like a table of contents for assistive technology users. When a page has more than one `<main>` landmark, the structure is ambiguous and broken: screen readers, keyboard navigators, and other assistive tools cannot reliably identify where the page's core content begins and ends. The fix is to ensure only one `<main>` or `role="main"` exists in the entire rendered HTML of any given page.
Screen reader users — including blind shoppers and customers with motor disabilities — routinely press a single keystroke to jump directly to the main content area, skipping repeated navigation menus. If two `<main>` landmarks exist, assistive technology either stops at the first one (potentially landing on a header or widget instead of your products) or announces confusing duplicate regions, eroding trust and causing shoppers to abandon the page. WCAG 2.1 Success Criterion 1.3.6 (Identify Purpose) and wider landmark guidance require unique landmark roles; failing this check exposes your store to accessibility-compliance risk in jurisdictions with ADA, EAA, or EN 301 549 obligations. Fixing it is typically a quick template change with zero visual impact, so the risk-to-effort ratio strongly favours acting immediately.
See the complete Landmark no duplicate main guide for every platform and the full background.
Not sure if your PrestaShop store has this?
Run a free SEOLZ scan — we’ll find landmark no duplicate main and every other issue across your whole site.
Scan my site free