WordPress.org

Support

Support » Themes and Templates » Want to move Search option from header to navigation bar

Want to move Search option from header to navigation bar

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, anik424.

    Please add a class in searchform.php

    <form method="get" id="searchform" class='searchbar' action="<?php echo esc_url( home_url( '/' ) ); ?>">

    Then set margin-top.

    In style.css add

    .searchbar{margin-top: 237px;}

    —————
    Please adjust the value for margin-top which is suit for your website.

    Thanks.

    Hanafi.

    To avoid modifying original theme styles, use a custom style/css plugin, then add this style in the allocated plugin area.

    #branding #searchform {
     top: auto;
     margin-top: 5px;
    }

    @mohamad Hanafi

    I have done what u told. But no luck.. navigation bar shifted to right and no Search option..

    thnx Mohamad Hanafi and Andrew Nevins.

    I just modified original style.css file by adding these line…

    #branding #searchform {
    top: auto;
    margin-top: 220px;
    }

    Problem Solved!!!

    You can cut down your code by removing top: auto;.

    okk.. thnx @ Nevins

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Want to move Search option from header to navigation bar’ is closed to new replies.
Skip to toolbar