Removing header search bar from homepage only
-
Hi All,
I am trying to remove the search bar from the homepage in Storefront only, but keep the search bar on all the other pages.
I am able to remove the search bar from the header using this code:
add_action( ‘init’, ‘jk_remove_storefront_header_search’ );
function jk_remove_storefront_header_search() {
remove_action( ‘storefront_header’, ‘storefront_product_search’, 40 );
}But would like to do it for only the homepage.
Any ideas?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Removing header search bar from homepage only’ is closed to new replies.