Hey,
Im trying to make my search form to search exactly what I type in the bar, but somehow it always shows me ALL the pages on my website.
What should I edit in the .php file?
Thanks !!
<form role=”search” method=”get” class=”search-form” action=”<?php echo home_url( ‘/’ ); ?>”>
<div class=”form-group”>
<div class=”input-group”>
<input class=”form-control” type=”search” placeholder=”<?php esc_html_e( ‘Search’, ‘docpress’ ) ?>” value=”<?php echo esc_html( get_search_query() ) ?>” name=”s” title=”<?php _e( ‘Search for:’, ‘docpress’ ) ?>” />
<span class=”input-group-btn”>
<input type=”submit” class=”btn btn-primary” value=”<?php esc_html_e( ‘Search’, ‘docpress’ ) ?>” />
</span>
</div>
</div>
</form>