Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19707

    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

    #104653

    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

    #104654

    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

    #104655

    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

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Add Text, or Widget, In Place of Search in Header’ is closed to new replies.