Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21973

    Is there a way to move the search box to the Nav Bar? Thanks.

    #113734

    Anyone have any ideas. I just want in to the right of the buttons. Here is a link to my site: http://www.texaslakesandponds.com

    #113735

    Hi chmorelock07,

    First you need to remove this from your quick css:

    #top .main_menu .avia_mega {
    padding-left: 140px;
    }

    Then in the header.php file move the get_search_form(); to just above:

    echo "<div class='sub_menu'>";
    $args = array('theme_location'=>'avia2', 'fallback_cb' => '');
    if(avia_woocommerce_enabled()) $args['fallback_cb'] ='avia_shop_nav';
    wp_nav_menu($args);
    echo "</div>";

    Then add this new css to give the sidebar a bit of positioning:

    #searchform {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 9999;
    background: white;
    }

    It may need a bit of cleaning up after that but it should get you 90% there if not completely.

    Regards,

    Devin

    #113736

    Once again thank you for your awesome support! A little tweaking and its perfect. Thanks Devin!

    #113737

    Glad we could help :)

    Let us know if you have any other questions or issues.

    Regards,

    Devin

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

The topic ‘Move Search Box to nav bar’ is closed to new replies.