This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Replacing Storefront Primary nav search

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Replacing Storefront Primary nav search Reply To: Replacing Storefront Primary nav search

#22292
Ernest MarcinkoErnest Marcinko
Keymaster

Hi Rob,

Thank you very much for the details, it helped a lot. Looks like that theme uses a different method to display the search bar. I have downloaded and looked up the source and managed to come up with a custom code that replaces the default search bar with ajax search pro.
I placed the following custom code to the child theme directory into the functions.php file:

add_filter('sfp_search_form_html', 'asp_override_sfp_search_form_html', 10);
function asp_override_sfp_search_form_html() {
	echo '<div>' . do_shortcode('[wpdreams_ajaxsearchpro id=1]') . '</div>';
}

You should see the new search bar there now.