wordpress/php-fpm/wordpress_files/themes/hero/searchform.php

17 lines
721 B
PHP
Raw Normal View History

2020-05-22 03:40:23 +02:00
<?php
/**
* Template for displaying search form
*
* @package hero
*/
?>
<form role="search" method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label>
<span class="screen-reader-text"><?php echo esc_html_x( 'Search for:', 'label', 'hero' ); ?></span>
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'hero' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" />
</label>
<button type="submit" class="search-submit btn search-btn"><span class="screen-reader-text"><?php echo esc_html_x( 'Search', 'submit button', 'hero' ); ?></span><i class="fa fa-search"></i></button>
</form>