Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › WP Default Search Not Getting Replaced. › Reply To: WP Default Search Not Getting Replaced.
January 27, 2021 at 1:42 pm
#31307
Keymaster
Hi,
That snippet looks promising, you probably don’t need a child theme after all.
Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!
add_filter( 'generate_navigation_search_output', function() {
return sprintf(
'<div class="navigation-search">%s</div>',
do_shortcode( [wpdreams_ajaxsearchpro id=2]' )
);
} );
Based on their recommended snippet, this should work.