Hi - how would I replace the search box in the header with either some text or, ideally, a text-widget? Is that possible?
Thanks John
Hi - how would I replace the search box in the header with either some text or, ideally, a text-widget? Is that possible?
Thanks John
Hi,
Open header.php and find this code
echo "<div class='header_meta'>";
/*
* Display the search form
*/
if(!avia_woocommerce_enabled() || avia_get_option('header_search') != 'product')
{
get_search_form();
}
else
{
get_product_search_form();
}
echo "</div>";
You can replace it with something like this
echo "<div class='header_meta'>";
YOUR TEXT HERE
echo "</div>";
Regards,
Ismael
I get the following error message when making that change: Parse error: syntax error, unexpected T_ECHO in /home/holton59/public_html/wp-content/themes/replete/header.php on line 133
How would I add a widget positon here, or is that a major undertaking?
Thanks!!
John
Hi,
I'm not sure if you are editing the correct lines so please check if you find these code on line 162-177
echo "<div class='header_meta'>";
/*
* Display the search form
*/
if(!avia_woocommerce_enabled() || avia_get_option('header_search') != 'product')
{
get_search_form();
}
else
{
get_product_search_form();
}
echo "</div>";
If that is the case replace it with this code.
echo "<div class='header_meta'>";
echo "YOUR TEXT HERE";
echo "</div>";
Creating a widget will be a bit complicated. :)
Regards,
Ismael
You must log in to post.