Created
March 15, 2023 13:09
-
-
Save stuartduff/7b5d1f85bd29917fb9f9eca395d306f5 to your computer and use it in GitHub Desktop.
Replace Storefront Header Search With Default WordPress Search Widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function storefront_product_search() { | |
if ( storefront_is_woocommerce_activated() ) { | |
?> | |
<div class="site-search"> | |
<?php the_widget( 'WP_Widget_Search', 'title=' ); ?> | |
</div> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment