Missing accessibility label in search form
-
I’m using simple life as a responsive theme for a client the have been required by government statute to ensure that their website is fully compatible with W3C accessibility guidelines. I’ve been using the https://wave.webaim.org/ tooling to check this and it keeps coming back with an empty label for screen readers on the search box.
Looking at the code in searchform.php I find the following
<label class="screen-reader-text" for="s"><?php esc_html_x( 'Search for:', 'label', 'simple-life' ); ?></label>
Can someone explain why the php statement there is returning a null value and this ends up with empty content? From what I understand it should put something sensible in there.
The page I need help with: [log in to see the link]
- The topic ‘Missing accessibility label in search form’ is closed to new replies.