Skip to content

Commit

Permalink
Update product-searchform.php
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed May 31, 2023
1 parent 763f7a9 commit 4c9daef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woocommerce/product-searchform.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
?>
<form role="search" method="get" class="searchform woocommerce-product-search" action="<?php echo esc_url(home_url('/')); ?>">
<div class="input-group">
<input class="form-control" type="search" id="woocommerce-product-search-field-<?php echo isset($index) ? absint($index) : 0; ?>" class="search-field field form-control" placeholder="<?php echo esc_attr__( 'Search products&hellip;', 'woocommerce' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
<input class="search-field field form-control" type="search" id="woocommerce-product-search-field-<?php echo isset($index) ? absint($index) : 0; ?>" placeholder="<?php echo esc_attr__( 'Search products&hellip;', 'woocommerce' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
<label class="visually-hidden-focusable" for="woocommerce-product-search-field-<?php echo isset($index) ? absint($index) : 0; ?>"><?php esc_html_e('Search for:', 'woocommerce'); ?></label>
<input type="hidden" name="post_type" value="product" />
<button type="submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'woocommerce' ); ?>" class="input-group-text btn btn-outline-secondary <?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ); ?>"><i class="fa-solid fa-magnifying-glass"></i><span class="visually-hidden-focusable">Search</span></button>
Expand Down

0 comments on commit 4c9daef

Please sign in to comment.