Multiple labeling for search field
-
I’m having a problem I’m not sure how to solve.
I have WP Accessibility set with the “Automatically Label WordPress search form and comment forms” option, to ensure the comment fields are labeled properly. However, because my search box is already labeled, I’m getting a WCAG validation error that the search field has multiple labels. This is what the code looks like:
<section id="search-2" class="widget-sidebar frontier-widget widget_search"> <form role="search" method="get" class="search-form" action="https://ateupwithmotor.com/"> <label><span class="screen-reader-text">Search for:</span> <input type="search" class="search-field" placeholder="Search …" value="" name="s" /> </label> <input type="submit" class="search-submit" value="Search" /></form</section>
I’m not sure the best way to deal with this problem. Is there any way to set WP Accessibility to label the comment fields and search fields separately, so I can toggle one but not the other?
Thanks!
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Multiple labeling for search field’ is closed to new replies.