RPeraltaJr
6/12/2018 - 9:26 PM

Built-in Search Form in WP

<!-- 
    NOTE: Place this file within theme folder to override default WP styles
    Documentation: 
    https://developer.wordpress.org/reference/functions/get_search_form/ 
-->
<form action="<?php echo home_url(); ?>" method="get">
    <label for="search" class="sr-only">Search</label>
    <input type="text" name="s" id="search" value="<?php the_search_query(); ?>" />
    <input type="submit" value="" />
</form>