Title: Remove searchbox
Last modified: August 20, 2016

---

# Remove searchbox

 *  [Ligefrem](https://wordpress.org/support/users/ligefrem/)
 * (@ligefrem)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/remove-searchbox/)
 * I need to remove the searchbox on nillerpilfinger.dk, but I can’t find the script
   that calls it. Here the php for the header:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

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

 *  [Christi Nickerson](https://wordpress.org/support/users/christini/)
 * (@christini)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/remove-searchbox/#post-2486923)
 * Hi Ligefrem,
 * First, make sure you are using a [Child Theme](http://codex.wordpress.org/Child_Themes).
   In the style sheet for your child theme, add this bit of CSS:
 *     ```
       #searchform {
       display: none;
       }
       ```
   
 * That will set the display of the search box to none and it will not affect the
   flow of your layout either.
 * Hope this helps!
 *  Thread Starter [Ligefrem](https://wordpress.org/support/users/ligefrem/)
 * (@ligefrem)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/remove-searchbox/#post-2486928)
 * But I’m not using a child theme (I knew how to do that) and I want to remove 
   the searchbox from THIS theme.
 *  [chisler](https://wordpress.org/support/users/chisler/)
 * (@chisler)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/remove-searchbox/#post-2486933)
 * you need to remove the div from the navigation section (probably in header.php).
   Search for `<div id="search">` and remove (maybe comment out first just to make
   sure) everything up and including the closing `</div>` after the `</form>` tag.
 * Hope this helps.
 *  [Christi Nickerson](https://wordpress.org/support/users/christini/)
 * (@christini)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/remove-searchbox/#post-2486938)
 * Hi Ligefrem,
 * I suggested a Child Theme because if you make changes to a theme (not a Child
   Theme of the theme) your changes can be overwritten in the future if the theme
   is updated.
 * In your CSS style sheet modify:
 *     ```
       #search {
           position: absolute;
           right: 0;
           top: 10px;
           width: 229px;
       }
       ```
   
 * to:
 *     ```
       #search {
           position: absolute;
           right: 0;
           top: 10px;
           width: 229px;
           display: none;
       }
       ```
   
 * Good luck with your site!
 *  [chisler](https://wordpress.org/support/users/chisler/)
 * (@chisler)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/remove-searchbox/#post-2486939)
 * Much better idea, thanks Christi. Ligefrem, follow Christi’s advice, make your
   changes in a child theme so you dont lose anything if you upgrade your theme.

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

The topic ‘Remove searchbox’ is closed to new replies.

 * 5 replies
 * 3 participants
 * Last reply from: [chisler](https://wordpress.org/support/users/chisler/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/remove-searchbox/#post-2486939)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
