Hi
I’m trying to add the woocommerce predictive search plugin function to the head of the site.
I’m adding the following code to sf-header.php file woo_predictive_search_widget()
So output is…
} else if ($header_layout == "header-2") {
$header_output .= '<header id="header" class="clearfix">'. "\n";
$header_output .= '<div class="container">'. "\n";
$header_output .= '<div class="row">'. "\n";
$header_output .= sf_logo('span3 logo-left');
$header_output .= '<div class="span5">'.woo_predictive_search_widget().'</div>'. "\n";
$header_output .= '<div class="header-right span4">'.sf_aux_links('header-menu').'</div>'. "\n";
$header_output .= '</div> <!-- CLOSE .row -->'. "\n";
$header_output .= '</div> <!-- CLOSE .container -->'. "\n";
$header_output .= '</header>'. "\n";
$header_output .= sf_mobile_search();
$header_output .= '<div id="main-nav">'. "\n";
$header_output .= sf_main_menu('main-navigation', 'full');
$header_output .= '</div>'. "\n";
However when the code outputs on the page the search widget code appears above <header id="header" class="clearfix">
And where you would expect it to output (between <div class="span5"> and </div>
) is blank!
Any ideas why this might be happening?
Thanks!