Skip to content

Instantly share code, notes, and snippets.

@WillBrubaker
Last active August 29, 2015 14:12
Show Gist options
  • Save WillBrubaker/15397f242c29dd37e4e3 to your computer and use it in GitHub Desktop.
Save WillBrubaker/15397f242c29dd37e4e3 to your computer and use it in GitHub Desktop.
Override Default Search with WooCommerce Product Search
<?php
if ( function_exists( 'woocommerce_product_search' ) ) {
echo woocommerce_product_search();
} else {
//the original contents of search.php should follow
//make sure to close the php tag as appropriate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment