-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsearchform.php
More file actions
22 lines (22 loc) · 830 Bytes
/
searchform.php
File metadata and controls
22 lines (22 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* Search Form Template
* @package WordPress
* @subpackage Project_Zero
* @since 0.1
*
* Inserts a search form whenever the get_search_form() function is called.
*
* For more information, check out
* @link https://developer.wordpress.org/reference/functions/get_search_form/
*/
?>
<form id="searchform" class="searchform" role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div class="form-wrap">
<label class="screen-reader-text" for="s"><?php _x( 'Search for:', 'search label', 'zero-theme' ); ?></label>
<input type="text" value="<?php echo get_search_query(); ?>" name="s" id="s" />
<button type="submit" id="searchsubmit">
<span class="fa-solid fa-magnifying-glass"></span>
</button> <!-- #searchsubmit -->
</div> <!-- .form-wrap -->
</form> <!-- #searchform -->