how can I do override the default WooCommerce products search form on my custom WooTheme ?

Thank You


Exists the template product-searchform.php, you have to override it in your theme.

More information here about how to override WooCommerce templates from your theme.

Basically the WooCommerce search forms returns only products and not also other post types because the product post type is specified in an hidden input:

<input type="hidden" name="post_type" value="product" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.