An accessibility audit of a WordPress theme against WCAG 2.2
Since the European Accessibility Act applies (June 2025), accessibility is a legal requirement for many online shops and services in the EU, and WCAG 2.2 level AA is the reference most audits use. Automated tools find about a third of the problems; the rest needs a keyboard, a screen reader and a checklist. This is the order I use for a theme: automated scan, keyboard pass, screen reader pass, then the criteria that are new in WCAG 2.2.
Problem: A shop must document WCAG 2.2 AA conformance for its theme. An automated scan shows 40 issues, and the team does not know which matter most or what the scan misses.
Solution: Fix the automated findings first (contrast, missing labels, alt texts), then test every template with the keyboard only, then with a screen reader, and check the WCAG 2.2 additions explicitly: focus not obscured, target size, dragging alternatives, consistent help, redundant entry and accessible authentication. Record each finding with the criterion, the template and the fix.
1. Automated scan
Run axe DevTools or Lighthouse’s accessibility audit on each template type: home, archive, single post, page, search, 404, product, cart, checkout, account. Typical findings in themes:
- Text contrast below 4.5:1 (3:1 for large text), often in light gray meta text and placeholder text.
- Form fields without a
<label>, especially the search field in the header. - Images without
alt, links with only an icon and no accessible name. - Duplicate IDs from widgets or blocks rendered twice (mobile and desktop menus).
2. Keyboard only
Unplug the mouse and go through each template with Tab, Shift+Tab, Enter, Space and Escape:
- A visible focus indicator on every interactive element (
:focus-visiblewith at least a 2px outline that contrasts with the background). - A “Skip to content” link as the first focusable element.
- Menus, modals, the mini cart and the search overlay open and close with the keyboard, Escape closes them, and focus returns to the button that opened them.
- No keyboard traps: focus can always leave a component.
- The focus order matches the visual order: reading-flow for grid and flex layouts.
3. Screen reader
With NVDA (Windows) or VoiceOver (macOS, iOS), check that headings form a logical outline (one h1, no skipped levels in templates), landmarks exist (header, nav with a label, main, footer), buttons are announced as buttons, and dynamic changes such as “Added to cart” are announced through an aria-live region.
4. What is new in WCAG 2.2
- 2.4.11 Focus Not Obscured: a sticky header or a cookie banner must not cover the focused element completely.
scroll-padding-toponhtmlequal to the header height fixes most cases. - 2.5.8 Target Size (Minimum): interactive targets at least 24×24 CSS pixels, or enough spacing around them. Small icon buttons in carts (remove item, quantity) are common failures.
- 2.5.7 Dragging Movements: anything that needs dragging (sliders, sortable lists) needs a non-drag alternative, such as buttons.
- 3.2.6 Consistent Help: help links and contact information in the same place on every page.
- 3.3.7 Redundant Entry: do not ask for the same information twice in a process; for example “shipping address same as billing” in the checkout.
- 3.3.8 Accessible Authentication: no cognitive tests (like retyping a code from an image) without an alternative; allow password managers and paste in password fields.
Document it
A table with criterion, page, issue, severity, fix and status becomes the basis of the accessibility statement. Retest after each theme update; regressions come from new components more often than from changed ones.
NOTE: The block editor’s content is part of the audit too: editors who add images without alt text or headings in the wrong order break conformance after launch. Theme defaults (alt text field reminders, heading levels in patterns) help more than a one-time audit. Text that wraps cleanly for readability: text-wrap: balance and pretty.