-
Notifications
You must be signed in to change notification settings - Fork 2
/
searchform.php
19 lines (17 loc) · 677 Bytes
/
searchform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
* The template for displaying custom search form
*
* @package CarListings
*/
?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label>
<span class="screen-reader-text"><?php esc_html_e( 'Search for:', 'carlistings' ); ?></span>
<input type="text" class="search-field" placeholder="<?php esc_attr_e( 'Type and hit Enter...', 'carlistings' ); ?>" value="<?php the_search_query(); ?>" name="s">
</label>
<button type="submit" class="search-submit">
<i class="icofont icofont-search"></i>
<span class="screen-reader-text"><?php esc_html_e( 'Search', 'carlistings' ); ?></span>
</button>
</form>