Your account expired support, please renew to get your support.
HomePage › Forums › Themes Support › Matico – Multi Vendor Marketplace WordPress Theme › Search Bar Label
- This topic has 1 reply, 2 voices, and was last updated 1 year ago by Billy Nguyen.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
April 27, 2023 at 3:54 pm #34109pnaaSupport Expired
Currently, the search bar on the header displays “Search Products…” I want to remove the word Products, so it can be only “Search …” but I can’t find which file I have to change the label, can you help?
April 28, 2023 at 2:38 pm #34149Please copy this function to the file functions.php ( child-theme):
function matico_product_search() { if (matico_is_woocommerce_activated()) { static $index = 0; $index++; ?> <div class="site-search ajax-search"> <div class="widget woocommerce widget_product_search"> <div class="ajax-search-result d-none"></div> <form role="search" method="get" class="woocommerce-product-search" action="<?php echo esc_url(home_url('/')); ?>"> <label class="screen-reader-text" for="woocommerce-product-search-field-<?php echo isset($index) ? absint($index) : 0; ?>"><?php esc_html_e('Search for:', 'matico'); ?></label> <input type="search" id="woocommerce-product-search-field-<?php echo isset($index) ? absint($index) : 0; ?>" class="search-field" placeholder="<?php echo esc_attr__('Search …', 'matico'); ?>" autocomplete="off" value="<?php echo get_search_query(); ?>" name="s"/> <button type="submit" value="<?php echo esc_attr_x('Search', 'submit button', 'matico'); ?>"><?php echo esc_html_x('Search', 'submit button', 'matico'); ?></button> <input type="hidden" name="post_type" value="product"/> <?php matico_show_categories_dropdown(); ?> </form> </div> </div> <?php } }
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.