Skip to main content

WordPress / PHP guide

Fixing WordPress WCAG 2.1/2.2 AA errors without overlay widgets

Clean theme and template fixes for WordPress agencies replacing broken accessibility widgets.

2 fixes · Written for WordPress / PHP

  1. 1

    label

    WCAG 1.3.1 Info & Relationships

    Search widgets and contact forms rely on placeholder text instead of a programmatic <label>.

    The fix

    <!-- After -->
    <label for="site-search" class="screen-reader-text">Search site</label>
    <input id="site-search" type="search" name="s" placeholder="Search articles...">
  2. 2WCAG 2.4.4 Link Purpose

    Social icon links in theme headers contain empty anchor tags with icon fonts.

    The fix

    <a href="https://linkedin.com/company/acme" aria-label="Follow Acme on LinkedIn">
      <span class="dashicons dashicons-linkedin" aria-hidden="true"></span>
    </a>

Free scan, free account

Scan your WordPress / PHP site automatically.

Scan free, then sign in with a free account to get every failing selector plus an agent-ready export with fix guidance.

Run a free scan
Fixing WordPress WCAG 2.1/2.2 AA errors without overlay widgets | WCAGBench