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

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


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


    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';
    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.




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


    Glad we could help :)

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



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

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