How to change functionality of search bar in header?
Hi, I'm using WooCommerce with your theme. If I search a product with search bar located in header, I receive results like blog list.
If I search with "Woocommerce Search widget" the results show properly so, how can I change functionality of search bar in header?
I think it could be a good feature to add in your update because it's important for e-commerce.
For example try it in your demo store: http://themes.muffingroup.com/be/store/
Try to search "Woo" in header.
These are the results if I search with search bar in header: http://themes.muffingroup.com/be/store/?s=woo
These are the results if I search with woocommerce search widget (I think this way is most proper) http://themes.muffingroup.com/be/store/?s=woo&post_type=product
Thank you for your support.
If I search with "Woocommerce Search widget" the results show properly so, how can I change functionality of search bar in header?
I think it could be a good feature to add in your update because it's important for e-commerce.
For example try it in your demo store: http://themes.muffingroup.com/be/store/
Try to search "Woo" in header.
These are the results if I search with search bar in header: http://themes.muffingroup.com/be/store/?s=woo
These are the results if I search with woocommerce search widget (I think this way is most proper) http://themes.muffingroup.com/be/store/?s=woo&post_type=product
Thank you for your support.
Comments
Thank you for your valuable advice we will try to improve the product search results in header search in one of following updates
Thanks!
header-top-area.php
adding this line before </form>
<input type="submit" name="post_type" class="submit" value="product" style="display:none;" />
Have a nice day
Thanks for sharing!
Have a nice day
If it is not to be updated soon, can you please tell me where I find the file header-top-area.php please? I can't seem to find it in the betheme editable php files in order to do the manual workaround that JosephDJV provided. Thanks.
I think it could be a good feature to add in your update because it's important for e-commerce.
For example try it in your demo store: http://themes.muffingroup.com/be/store/
Try to search "Woo" in header.
These are the results if I search with search bar in header: http://themes.muffingroup.com/be/store/?s=woo
These are the results if I search with woocommerce search widget (I think this way is most proper) http://themes.muffingroup.com/be/store/?s=woo&post_type=product"
You can check that in theme options>header&subheader>extras
We do not have any other options for searching the products, it is the default wordpress search options and you would have to code this manually or use some kind of a plugin.
thanks