Adding id and class to the search input in WordPress search form
You can hook into the get_search_form(). Set the priority high enough to override anything created in a theme. If you do have searchform.php in your theme, it will be used instead. The input text field should be named s and you should always include a label like in the examples below. WordPress Search Form Function … Read more