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

    is there a way to place the header search form into the main navigation bar – just to the left of the cart $$ area?

    #107134

    Hi nikicampbell,

    Try to add open wp-content/themes/replete/header.php and find this code:

    if(!avia_woocommerce_enabled() || avia_get_option('header_search') != 'product')
    {
    get_search_form();
    }
    else
    {
    get_product_search_form();
    }

    remove this. Next, find this code:

    <?php
    echo "<div class='main_menu' data-selectname='".__('Select a page','avia_framework')."'>";
    $args = array('theme_location'=>'avia', 'fallback_cb' => 'avia_fallback_menu', 'walker' => new avia_responsive_mega_menu());
    wp_nav_menu($args);

    Below it, add this:

    if(!avia_woocommerce_enabled() || avia_get_option('header_search') != 'product')
    {
    echo '<div class="custom_search">';
    get_search_form();
    echo '</div>';
    }
    else
    {
    echo '<div class="custom_search">';
    get_product_search_form();
    echo '</div>';
    }

    Then, add this code in your Quick CSS or at the bottom of custom.css:

    .custom_search {
    position: absolute;
    right: 50px;
    top: -9px;
    }

    Hope this helps

    Regards,

    Ismael

    #107135

    Thanks! Worked perfectly.

    #107136

    Hey,

    Glad it worked.

    Regards,

    Ismael

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

The topic ‘placing the searchfor. by the: "Cart – $11.11" in the navigation bar’ is closed to new replies.