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

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

#5664
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

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

So instead of

[php]
ob_start();
get_search_form();
$items_html .= ‘<li>’ . ob_get_clean() . ‘</li>’;
[/php]

try:

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

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