Moving the seach box

The seach box is conviently located in the top right hand side of the top navigation bar, however some people would prefer to move this to another location so this a quick guide to help those that want to move it.

  1. Login to the adminsition area of your site.
  2. Go to the Appearance tab (on the left side of the screen).
  3. Click on Editor
  4. The page that appears should be style.css, if not go to the right side of the page and find Styles heading and under there is Stylesheet (style.css) click on this
  5. Scroll down the page to find this  #search
  6. Change the third line down top:107px; to top:357px; which will put the search box on the bottom bar. If you want it somwhere else just play with the numbers.
  7. The search button now looks a little out of place so we will have to hack the call for the button.
  8. Under the #search { } place this code in. NOTE: Make sure you put the code after the closing bracket of the search styling.  Just look for this } character.
    /*******Input for Seach*****/
    .input {     border: 1px solid #006; }
  9. Click on Search Form (searchform.php) right side of page.
  10. Delete the third line <input src=”<?php bloginfo(‘stylesheet_directory’); >/images/search.gif” type=”image” value=”submit” />
  11. Replace with this line <input type=”submit” value=”Go” />
  12. The search box should be where you want it and has a new button.

Check your site and refresh by pressing F5 and it should all look ok.

This is what it should look like.

Related Posts

2 Responses to “Moving the seach box”

  1. Feb 21st, 2011 :

    Hi Paul,
    Loving this site, but am having issues with the search box movement. I think I followed the directions for moving it but I must be missing something.
    http://www.luvthemountains.com/
    Can you tell me what I am missing or how to restore the original code?

  2. Feb 21st, 2011 :

    I am releasing a new Breathe update very soon which make moving the search box very easy but until then here is the fix.
    #search {
    left:700px;
    top:107px;
    }

    Copy the #serach code above into Style-2.css. Make changes to the left and right px and see how you go.

Leave a Reply

Name (Required)

Email (Required - will not be published)

Website

Message (Required)