Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1221492

    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?

    #1223049

    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

    #1225376

    Works like a charm, thanks!

    #1225580

    Hi dfpg,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.