Using “achecker.ca” to test accessibility of a WordPress site, I got the following warning regarding the core Search widget:
Check 57: input element, type of “text”, missing an associated label.
Repair: Add a label element that surrounds the control’s label. Set the for attribute on the label element to the same value as the id attribute of the control. And/or add a title attribute to the input element. And/or create a label element that contains the input element.
WAVE gives a similar error. The HTML it flagged was:
<input type=”text” name=”s” class=”form-control” placeholder=”Search”>
The core widget does provide a label tag, but your theme overrides that. Could we please put it back, or add a title attribute as suggested by the testing tool?
The page I need help with: [log in to see the link]
- The topic ‘Search widget not accessible’ is closed to new replies.