Tagged: accessibility
I’ve got a search bar in the blog sidebar, but it doesn’t have a label or an aria-label. Here’s what it looks like now:
<input type="text" id="s" name="s" value="" placeholder="Search" style="">
It’d be great to have:
<input type="text"aria-label="search" id="s" name="s" value="" placeholder="Search" style="">
Does anyone know how?
Hey dfpg,
Thank you for the inquiry.
How did you add the search bar? If you’re using the default search bar from the theme, try to edit the wp-content > themes > enfold > searchform.php file.
<input type="text" id="s" name="<?php echo $search_params['search_id']; ?>" value="<?php if(!empty($_GET['s'])) echo get_search_query(); ?>" placeholder='<?php echo $search_params['placeholder']; ?>' />
Best regards,
Ismael
Works like a charm, thanks!
Hi dfpg,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria