WordPress WCAG Compliance: Audit, Fix, and Maintain

WordPress WCAG Compliance: Audit, Fix, and Maintain

WordPress WCAG Compliance: Audit, Fix, and Maintain

A WordPress website can look polished, load quickly, and convert visitors while still preventing people with disabilities from completing basic tasks. Achieving WordPress WCAG compliance requires more than installing an accessibility plugin or running an automated scanner; developers must examine the HTML, CSS, JavaScript, theme templates, and third-party components behind the experience. At WebExtended, the practical approach is to audit first, repair problems at their source, automate regression testing, and document the results. Accessibility is an engineering discipline, not a feature that can be switched on. The difference becomes clear when you test an actual checkout using only a keyboard.

WordPress WCAG Compliance

The Web Content Accessibility Guidelines (WCAG) define how websites accommodate people with visual, auditory, motor, and cognitive disabilities. Understanding conformance levels and versions helps developers distinguish contractual requirements, legal obligations, and sensible technical targets.

WCAG versionWhat AA addedWho is legally pointed at itPractical target
WCAG 2.0Contrast, resize, navigation, and other A and AA requirementsSection 508 procurement requirements and older contractsLegacy compatibility
WCAG 2.1Mobile accessibility, orientation, reflow, and additional input requirementsADA Title II public entities and many procurement contractsCommon contractual baseline
WCAG 2.2Improved focus visibility, target size, dragging alternatives, and accessible authenticationOrganizations adopting newer accessibility requirementsRecommended development target

WCAG has three conformance levels: A, AA, and AAA, with AA incorporating all applicable A and AA success criteria. Level A establishes essential accessibility requirements, while AA addresses additional barriers involving contrast, keyboard operation, text presentation, and interaction. AAA introduces stricter requirements that are not generally expected across every page of a commercial website.

WCAG 2.2 is the current W3C recommendation, while WCAG 2.1 AA remains the most common contractual baseline for accessibility projects. WCAG 2.2 builds on earlier versions, so a website targeting 2.2 AA must also satisfy applicable 2.0 and 2.1 criteria. For new WordPress builds, targeting 2.2 AA is a sensible engineering decision that avoids designing exclusively around an older specification.

Legal scope requires separate consideration because WCAG is a technical standard, not a universal law that applies identically to every website. The European Accessibility Act’s requirements have applied since June 28, 2025, including to covered consumer e-commerce services, subject to scope rules and exemptions for qualifying microenterprises providing services. In the United States, ADA Title II requires state and local government entities to meet WCAG 2.1 AA, with deadlines extended to April 26, 2027, for larger entities and April 26, 2028, for smaller entities and special districts; Section 508 separately governs federal agencies’ information and communication technology.

What actually breaks WordPress sites

  • Missing alternative text on meaningful product images, featured images, banners, and editorial photographs.
  • Form controls without programmatically associated labels, including checkout fields, newsletter forms, and search inputs.
  • Keyboard traps inside modal dialogs, navigation menus, shopping carts, and third-party popup components.
  • Insufficient contrast caused by page-builder color combinations, transparent overlays, gradients, and theme-specific button styles.
  • Skipped heading levels and incorrectly structured headings created by reusable blocks, widgets, and page-builder templates.
  • Inaccessible PDFs, downloadable product documents, invoices, and other files containing important customer information.
  • Autoplay carousels and sliders that move content without adequate pause, stop, or interaction controls.
  • Plugins injecting unlabeled widgets, inaccessible chat buttons, poorly structured cookie banners, and confusing interactive controls.

Four-stage WordPress accessibility workflow: audit the live site, fix theme code, run automated tests, and document compliance evidence

A reliable accessibility workflow follows four connected stages: audit the actual experience, fix the underlying implementation, test automatically and manually, and document what was verified. Each stage feeds the next because a code change can introduce a regression, while a documented issue can become a repeatable test. This cycle turns accessibility from an occasional remediation project into a predictable development process.

Audit Before You Touch Anything

The fastest way to waste an accessibility budget is to modify theme templates before understanding the problems. A proper WordPress audit identifies affected components, reproduces failures, establishes priorities, and separates genuine accessibility barriers from scanner warnings requiring human interpretation.

Start with axe DevTools for browser-based accessibility inspection and actionable information about failing elements. WAVE provides a visual representation of structural problems, missing labels, contrast concerns, and semantic HTML issues. Lighthouse can identify accessibility failures during broader performance and quality reviews, although its accessibility score never proves WCAG conformance.

A WordPress accessibility checker can help identify problems across published content, especially missing image descriptions and potentially incorrect heading structures. However, plugin-based checks rarely understand custom JavaScript behavior, checkout interactions, or third-party components completely. Use them as an additional inspection layer rather than your primary accessibility testing strategy.

Audit representative templates instead of inspecting every URL individually. Most WordPress websites reuse a relatively small number of templates, making representative testing more efficient than manually checking hundreds of similar pages. Include the homepage, archives, single posts, product listings, individual products, cart, checkout, account pages, search results, and important landing pages.

Follow automated scanning with a keyboard-only pass using Tab, Shift+Tab, Enter, Space, and Escape. Check whether every interactive element receives visible focus, menus open and close predictably, and customers can complete important tasks without a mouse. Screen-reader testing with NVDA on Windows or VoiceOver on Apple devices adds verification that automated scanners cannot replace.

Record each finding with its location, affected component, WCAG success criterion, severity, and recommended remediation. Separate repeated template defects from isolated content problems because repairing one shared component can eliminate dozens of individual failures. This inventory becomes the baseline against which future development changes are measured.

Fix It in the Theme, Not on the Skin

Accessibility improvements should live as close as possible to the source of the problem, particularly when a theme or custom plugin controls the affected component. A child theme, project-specific functionality plugin, or maintained extension is usually better than accumulating temporary visual overrides.

A skip link allows keyboard users to bypass repeated navigation and reach primary content immediately. It should appear early in the document, become visible when focused, and point to an element that exists across relevant templates. This small improvement makes repeated navigation significantly less frustrating.

<!-- header.php -->
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>

<a class="skip-link screen-reader-text" href="#main-content">
    <?php esc_html_e( 'Skip to content', 'webextended' ); ?>
</a>

<header id="site-header">
    <!-- Existing accessible site navigation -->
</header>

<main id="main-content" tabindex="-1">

The main element must remain open until the actual end of page content, with its closing tag placed in the appropriate template. If your theme already defines a main element, add the identifier there instead of creating nested main elements. Verify that the skip link works across every template rather than only the homepage.

Handle Image Alternatives and Decorative SVGs

WordPress stores alternative text in attachment metadata, but missing descriptions are common on older websites and imported product catalogs. A fallback can help when metadata is genuinely absent, although automatically generated descriptions should never replace meaningful editorial decisions. The implementation must also preserve intentionally empty alt attributes for decorative images.

// functions.php

add_filter(
    'wp_get_attachment_image_attributes',
    function ( $attr, $attachment ) {
        $has_alt_metadata = metadata_exists(
            'post',
            $attachment->ID,
            '_wp_attachment_image_alt'
        );

        if ( ! $has_alt_metadata ) {
            $attr['alt'] = get_the_title( $attachment->ID );
        }

        return $attr;
    },
    10,
    2
);

This fallback preserves explicitly stored empty alternative text because empty alt attributes are appropriate for decorative images. For meaningful images, editors should describe the information conveyed rather than repeat filenames or generic product titles. Decorative inline SVGs should use aria-hidden="true" and focusable="false" when they provide no independent information.

Fix Navigation and Current-Page States

Navigation requires more than attractive styling because screen readers depend on meaningful relationships and state information. WordPress already identifies current menu items, so developers should preserve that information when modifying navigation markup. A simple filter can expose the current-page state without replacing the existing menu structure.

// functions.php

add_filter(
    'nav_menu_link_attributes',
    function ( $atts, $item, $args, $depth ) {
        if ( in_array(
            'current-menu-item',
            $item->classes,
            true
        ) ) {
            $atts['aria-current'] = 'page';
        }

        return $atts;
    },
    10,
    4
);

For hierarchical navigation, test expanded and collapsed states, keyboard access, and relationships between parent items and submenus. A menu that works only with pointer hover remains incomplete, even when every link has valid HTML. Avoid unnecessary ARIA roles when native navigation elements and properly structured links already provide the required semantics.

Make Keyboard Focus Impossible to Miss

Visible focus indicators are essential for people navigating with keyboards, but many WordPress themes remove browser outlines for aesthetic reasons. Replacing those outlines with subtle shadows or barely visible borders creates usability problems, especially against complex backgrounds. Use :focus-visible to provide a clear indicator without requiring JavaScript.

/* Accessible keyboard focus */
:where(
    a,
    button,
    input,
    select,
    textarea,
    [tabindex]:not([tabindex="-1"])
):focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99999;
    padding: 12px 18px;
    background: #ffffff;
    color: #111111;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

Check the focus indicator against dark headers, sticky navigation, product cards, and modal dialogs. WCAG 2.2 introduces additional focus-related requirements, so adding an outline alone does not establish conformance. Ensure focused controls are not obscured by floating buttons, sticky headers, or overlapping interface elements.

Repair Forms at Their Source

Forms are critical accessibility components because they control registration, purchasing, account management, and customer support. A placeholder cannot replace a persistent label, and an asterisk alone does not explain that a field is required. Repair the generated markup rather than injecting labels through JavaScript after the page loads.

WooCommerce checkout input field with a visible amber focus outline and an inline error indicator illustrating WCAG form and keyboard accessibility

For custom forms, use native label associations with matching for and id attributes. When WooCommerce checkout fields are involved, inspect their generated markup and use the appropriate field configuration rather than changing unrelated templates. Error messages should identify affected fields, explain corrections, and remain available to assistive technology after submission.

Find Missing Image Metadata with WP-CLI

Large content libraries are difficult to inspect manually, especially when WooCommerce catalogs contain thousands of products. WP-CLI can identify attachment records with empty alternative text, allowing developers to create focused remediation lists instead of guessing which images need attention. This is particularly useful when auditing migrated or imported media libraries.

wp db query "
SELECT
    p.ID,
    p.post_title,
    p.guid
FROM wp_posts AS p
LEFT JOIN wp_postmeta AS pm
    ON p.ID = pm.post_id
    AND pm.meta_key = '_wp_attachment_image_alt'
WHERE p.post_type = 'attachment'
AND (
    pm.meta_id IS NULL
    OR pm.meta_value = ''
)
ORDER BY p.ID DESC;
"

This query assumes the standard wp_ database prefix, so adjust table names when a different prefix is configured. Results require editorial review because some attachments are decorative, unused, or described through other content. Run the query against a database backup or staging environment first, and avoid bulk-generating descriptions without checking image meaning.

The Overlay Widget Question

Accessibility overlay products promise quick improvements through injected JavaScript, automated adjustments, and customer-facing toolbars. Their convenience appeals to business owners, but changing interface preferences is fundamentally different from repairing inaccessible source code. Understanding that distinction prevents agencies from selling unrealistic compliance guarantees.

Products in the accessiBe-style overlay category can adjust certain visual settings, expose additional controls, and attempt to compensate for common interface problems. However, they cannot reliably reconstruct missing semantic relationships, repair every keyboard interaction, or make inaccessible third-party applications usable. Screen-reader users can still encounter unlabeled controls, incorrect announcements, broken focus management, and inaccessible checkout workflows.

The underlying problem is that overlays generally operate on rendered experiences rather than correcting source implementations. When a product gallery has broken keyboard navigation or a checkout lacks properly associated labels, an injected accessibility layer may not repair the actual interaction. Automated overlays can also introduce JavaScript conflicts, performance overhead, and unexpected behavior after theme or plugin updates.

Accessibility overlay vendors have attracted litigation and public criticism concerning their effectiveness. Installing an overlay does not automatically establish WCAG conformance or eliminate legal exposure, and describing it as a compliance guarantee creates unrealistic expectations. The underlying website still requires meaningful testing against applicable accessibility criteria.

An accessibility toolbar can nevertheless provide useful optional controls when implemented correctly. Features such as adjustable text spacing, contrast preferences, and reduced-motion settings may improve usability without interfering with native browser functionality. These controls should supplement accessible development rather than replace it.

For agency projects, prioritize semantic HTML, keyboard behavior, contrast, form labels, and screen-reader announcements before considering another toolbar. When clients request overlays, evaluate their behavior using actual user journeys and assistive technologies. Never present the presence of an overlay as evidence that the website is accessible.

Automate the Boring Part

Manual accessibility testing is essential, but relying entirely on developers remembering every check is unsustainable. Automated testing in continuous integration catches recurring violations early and helps prevent theme or plugin updates from silently reintroducing previously fixed problems. The objective is repeatable verification, not replacing human judgment with a passing score.

Test Staging Pages in CI

For WordPress projects, axe-core and Pa11y are practical choices for automated accessibility checks. Both inspect rendered pages and identify detectable violations, including missing accessible names, invalid ARIA relationships, and certain contrast failures. Their results still require human interpretation because automated tools cannot determine whether every interaction is understandable or alternative text communicates the correct meaning.

Run checks against a stable staging environment rather than assuming the local development server represents the final website. Include the production theme, relevant plugins, representative content, and important interactive components in the testing environment. For ecommerce projects, prioritize the homepage, product archives, product details, cart, checkout, and account pages.

The following GitHub Actions workflow runs axe-core CLI against a staging homepage whenever triggered. It installs the browser-testing dependency, executes the scan, and fails the job when accessibility violations are reported. This creates an initial CI gate that developers can extend with additional representative URLs.

name: WordPress Accessibility Audit

on:
  push:
    branches:
      - main
  pull_request:
  workflow_dispatch:

jobs:
  accessibility:
    runs-on: ubuntu-latest

    steps:
      - name: Set up Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 22

      - name: Install axe CLI
        run: npm install --global @axe-core/cli

      - name: Run accessibility audit
        run: |
          axe https://staging.example.com/ \
            --exit

Replace the staging hostname with your actual environment address when configuring the workflow. A production implementation should scan additional representative URLs, use controlled test accounts for protected pages, and ensure staging is accessible to the CI runner. Pin dependency versions and review results whenever the scanner or browser engine changes.

Automated CI pipeline running accessibility checks on staging pages through a shielded pass gate before deployment

Separate Automated and Manual Testing

A successful CI run means the configured automated checks did not detect violations they were designed to identify. It does not mean the website passed every WCAG criterion because accessibility also involves context, content quality, interaction behavior, and assistive technology compatibility. Treat automated results as one measurable quality layer rather than a certification.

Combine automated checks with scheduled keyboard and screen-reader testing. Repeat those tests after major theme releases, page-builder updates, WooCommerce checkout customizations, and third-party integration changes. This matters particularly for ecommerce because payment, shipping, and account components can introduce accessibility problems outside the main theme.

Compliance You Can Hand to a Client

An accessibility project should finish with evidence explaining what was examined, repaired, left unresolved, and scheduled for future review. Delivering only a plugin list or a screenshot of a green Lighthouse score is insufficient for a professional agency engagement. Clients need documentation they can understand, maintain, and use when evaluating future changes.

Prepare an Accessibility Statement

An accessibility statement should describe the website’s accessibility objectives, targeted standard, testing approach, and known limitations. It should explain how visitors can report barriers and how the organization intends to respond to accessibility feedback. Keep the statement accurate and update it when significant changes affect the website’s accessibility.

A Voluntary Product Accessibility Template (VPAT) may be appropriate when a client requires structured accessibility conformance reporting. A completed VPAT produces an Accessibility Conformance Report (ACR), but it is not automatically a certification or guarantee of legal compliance. Its value depends on accurate testing, transparent disclosures, and a clearly identified evaluation scope.

Keep a Remediation Log

Every significant accessibility issue should have a record containing its location, observed behavior, affected WCAG criterion, severity, assigned developer, remediation date, and verification result. This creates a practical history of engineering decisions and helps identify recurring problems after updates. It also allows clients to distinguish completed work from outstanding accessibility risks.

A useful remediation log separates resolved defects, accepted limitations, and issues requiring further investigation. Record the browsers and assistive technologies used during manual testing, along with automated tools and versions. When a problem reappears, previous findings help establish whether the regression came from a theme update, plugin change, or content modification.

Define Accessibility in the Development Contract

Accessibility expectations belong in the original project scope rather than appearing as an undefined requirement during final acceptance testing. Specify the WCAG version and conformance level, templates and user journeys included in testing, responsibilities for content entry, and treatment of third-party integrations. This avoids disputes caused by vague promises to make a website fully accessible.

Define a remediation process for defects discovered during acceptance testing. The contract should distinguish developer-controlled components from third-party services and client-supplied documents, while explaining how excluded components will be reported and evaluated. It should also establish how accessibility maintenance and changes introduced by plugins will be handled after launch.

For ongoing agency retainers, include accessibility in the maintenance cycle alongside security, backups, performance, and compatibility testing. Schedule periodic reviews, automate checks after significant updates, and manually inspect critical workflows at agreed intervals. This makes compliance an operational responsibility rather than a deliverable that becomes outdated as soon as the website changes.

Frequently Asked Questions

WordPress accessibility projects often involve similar questions about technical requirements, testing tools, overlays, and legal responsibilities. The answers below address practical decisions for site owners and developers planning remediation or a new build. They also distinguish measurable conformance from assumptions about legal protection.

Is WordPress WCAG compliant out of the box?

WordPress provides accessibility-friendly foundations, including semantic markup and improvements to its administrative interface. However, installing WordPress does not automatically make a complete website WCAG compliant because themes, plugins, content, and custom functionality affect the final experience. Evaluate the rendered website and repair problems across every component contributing to its user journeys.

Best free way to check WordPress WCAG compliance?

A useful free starting combination is WAVE, Lighthouse, and the free accessibility testing capabilities of axe DevTools. These tools identify common problems involving missing labels, structural issues, and certain contrast failures. Combine automated scanning with keyboard-only testing and manual screen-reader inspection for a more reliable assessment.

Do accessibility overlay widgets actually work?

Accessibility overlays can provide optional interface adjustments, but they cannot guarantee that an underlying WordPress website meets WCAG requirements. They may fail to repair semantic HTML, broken keyboard interactions, inaccessible forms, and problems introduced by third-party scripts. Use optional accessibility controls as supplementary features after fixing the actual implementation.

Should I target WCAG 2.1 AA or 2.2 AA in 2026?

For new WordPress development, WCAG 2.2 AA is the stronger engineering target because it incorporates earlier criteria and introduces additional requirements for modern interactions. WCAG 2.1 AA remains a common contractual and regulatory baseline, including the technical standard adopted by the ADA Title II web accessibility rule. Where a contract or regulation specifies 2.1 AA, document that requirement while considering 2.2 AA improvements as additional project scope.

A private WooCommerce store should not assume every accessibility law applies identically simply because it accepts online payments. Relevant obligations depend on jurisdiction, business activities, customer markets, applicable disability laws, and sector-specific requirements. Assess the European Accessibility Act’s e-commerce scope and exemptions separately from applicable US federal and state requirements, with qualified legal advice where necessary.

Share:

Get Started on Creating Your Web Apps
with a Reliable Service Today!

Expert WordPress, Shopify & WooCommerce development — on time, every time.

Get a Free Quote →