WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I move the search bar? (6 posts)

  1. TheHypnonaut
    Member
    Posted 1 year ago #

    I am setting up a new blog/site at http://www.thehypnonaut.com I am hoping have the search bar show up on my home page and on the same line as the menu. Does that make sense? I am using the Target theme. Any and all help is greatly appreciated. Thanks!

    Chris

  2. Generically speaking:

    If you can modify the CSS using a tool such as Firebug and update your theme's header.php file to include the search form, then you can position the search form pretty much anywhere you like.

    That may be more work than you wanted. ;)

    More specifically for that theme: as that's a commercial theme you may want to ask at their support forum.

    http://antthemes.com/forums/

    We don't support commercial themes here as we don't have access to the theme files. Part of what you paid for was support from them when you purchased that theme.

  3. TheHypnonaut
    Member
    Posted 1 year ago #

    Thanks. First time wordpress user and I'm learning as I go along

  4. James Kirk
    Member
    Posted 1 year ago #

    Did a quick poke around that target theme and I am thinking you are going to have to manually enter the "get search form" in the header file.

    You may have to finagle the CSS to get the theme's searchform.php to dispaly properly in that top menu (that is where you want this, yes?)

    Basically you will open your site and go to the admin section, click on "Appearance >> Editor" and in there choose the "Header (header.php)" file.

    Scroll all the way to the bottom of that file and look for

    </div>
    <!--menu end-->

    Insert the get_search_form function between the /div and menu end, so it now looks like:

    </div>
    <?php get_search_form( $echo ); ?>
    <!--menu end-->

    That "should" get you closer to what you are looking to do.

    Cheers!

  5. James Kirk
    Member
    Posted 1 year ago #

    Or you can just do what Jan said ;)

    I went right to the WordPress theme repository, saw 'target' there and used that to look for an answer.

    Go figure!

    Cheers.

  6. TheHypnonaut
    Member
    Posted 1 year ago #

    I'm enjoying the benefits of Firebug :) Thanks James. That did position the search bar up there; although, for some reason it shows two search bars :/ I'm going to play around with the code a bit and do a good ol' fashion trail and error.

Topic Closed

This topic has been closed to new replies.

About this Topic