Reply To: Placing AJAX search pro into header/nav bar

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Placing AJAX search pro into header/nav bar Reply To: Placing AJAX search pro into header/nav bar

#5664
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi!

Based on the code I would try replacing the get_search_form(); line.

So instead of


ob_start();
get_search_form();
$items_html .= '<li>' . ob_get_clean() . '</li>';

try:


ob_start();
echo do_shortcode('[wpdreams_ajaxsearchpro id=0]');
$items_html .= '<li>' . ob_get_clean() . '</li>';

Don’t forget to replace the ID of the search instance you want to use.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)