Skip to content

Instantly share code, notes, and snippets.

  • Save jamiemarsland/7da9afa0756337f4618e to your computer and use it in GitHub Desktop.
Save jamiemarsland/7da9afa0756337f4618e to your computer and use it in GitHub Desktop.
Remove search bar from header
add_action( 'init', 'jk_remove_storefront_header_search' );
function jk_remove_storefront_header_search() {
remove_action( 'storefront_header', 'storefront_product_search', 40 );
}
@jeffmauget
Copy link

seems simple enoigh but I somehow failed to make this work

@jeffmauget
Copy link

ok.. I found my error - thanks!

@JuliaMe
Copy link

JuliaMe commented Jul 19, 2017

I tried this too but it had no affect. Can you tell me how you fixed it please jeffmauget?

@JuliaMe
Copy link

JuliaMe commented Jul 19, 2017

Or alexbrohman :)Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment