This question already has an answer here:
In the .theme file of my custom Drupal 8 theme, how do I customize the default search block so that I can add custom classes and also alter the input label to remove the word "search" but instead have a search icon from fontawesome?
Pretty much, I'd like the final output code to look like this:
<div class="infoBar-search"> <form action="#!" class="searchForm"> <input type="search" name="sitesearch" placeholder="Search..."> <input type="submit" class="searchForm-submit fa" value=""> </form> </div>
Would the .theme approach be the best way to go about this? I tried altering a few template files but noticed this would affect the other forms on the site as well.