Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18835

    I use 95% full width templates and won´t put the searchbx in the footer.

    What can i do?

    #101124

    Open up header.php and replace following code:

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

    with:

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

    get_search_form();

    This code will add the search form below your menu – you can also insert the get_search_form() function before the menu code. Maybe some additional css styling is required but obviously this depends on your website content & design.

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

The topic ‘How i can put the search box in the header area?’ is closed to new replies.