<?php
/**
 * Template for displaying search forms
 *
 * @package Electronics Equipment
 */

?>

<form role="search" method="get" class="search-from" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    <input type="hidden" name="post_type" value="product">
    <div class="form-group search-div mb-0">
        <input
            type="search"
            name="s"
            class="search-field form-control"
            placeholder="<?php echo esc_attr_x( 'Search here for products', 'placeholder', 'electronics-equipment' ); ?>"
            value="<?php echo esc_attr( get_search_query() ); ?>"
            title="<?php esc_attr_x( 'Search for:', 'label', 'electronics-equipment' ); ?>"
        >
        <button type="submit" class="search-submit" aria-label="<?php esc_attr_x( 'Search', 'submit button', 'electronics-equipment' ); ?>">
            <i class="fas fa-search" aria-hidden="true"></i>
        </button>
    </div>
</form>