Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 169539

Adding a search box through add_action

$
0
0

Replies: 0

I’m using the Storefront theme and trying to replace the product search box in the header with a general site search box.

I’ve gotten as far as removing the old one with this line in functions.php:

remove_action( 'storefront_header', 'storefront_product_search', 40 );

But when I try to insert the default search form, nothing happens.

add_action( 'storefront_header', 'get_search_form', 40 );

Am I using the incorrect function name? I’ve been Googling this all afternoon and am no closer to figuring it out. What am I missing?

TIA!


Viewing all articles
Browse latest Browse all 169539

Trending Articles