-
-
Save jamiemarsland/7da9afa0756337f4618e to your computer and use it in GitHub Desktop.
Remove search bar from header
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
add_action( 'init', 'jk_remove_storefront_header_search' ); | |
function jk_remove_storefront_header_search() { | |
remove_action( 'storefront_header', 'storefront_product_search', 40 ); | |
} |
seems simple enoigh but I somehow failed to make this work
ok.. I found my error - thanks!
I tried this too but it had no affect. Can you tell me how you fixed it please jeffmauget?
Or alexbrohman :)Thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What does 'jk_remove_storefront_header_search' mean? Used this today to remove a WooCommerce search bar. Now that I know how to do it, I'd love to know why it worked.