Title: replace Search with Google search
Last modified: August 18, 2016

---

# replace Search with Google search

 *  [adeboer](https://wordpress.org/support/users/adeboer/)
 * (@adeboer)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/replace-search-with-google-search/)
 * I’d like to replace the search form on my default wordpress 1.5 theme with the
   Google search tool – Google Free web search with site search.
 * [http://www.google.ca/searchcode.html](http://www.google.ca/searchcode.html)
 * how can I do this?
 * Thanks.
 * Adrian

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

 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/replace-search-with-google-search/#post-159609)
 * I’m not familiar with it, but I’d put the code from google pasted into where 
   you want it in your template (usually `index.php`) and remove the references 
   to the search and search from in the same file. I’d comment it out using // before
   each line before you remove it rather than deleting it wholesale. This way, if
   it breaks, you have something to return to.
 * You can find these references by searching for SEARCH in the index.php file.
 *  [Avenir](https://wordpress.org/support/users/avenir/)
 * (@avenir)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/replace-search-with-google-search/#post-159624)
 * If you’re using the default template, then you should open the file `searchform.
   php`, delete what’s in there and then put in the Google searchbar code. Kubrick
   makes the search form a separate file to ensure that any changes to the search
   form are represented across the entire blog.
 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/replace-search-with-google-search/#post-159907)
 * Ah, the modularness of modular WordPress!
 *  Thread Starter [adeboer](https://wordpress.org/support/users/adeboer/)
 * (@adeboer)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/replace-search-with-google-search/#post-159932)
 * Still not working and i can’t find anything in index.php – the one in the default
   theme folder and the one in the wordpress root. The search.php is the code that
   is excecuted after one presses the search button – its not the search form itself–
   that is what I want to change. I need to find where the default search kubrick
   code is located that lays out the search form and replace it with the google 
   code…
 * Thanks.
 * aDRIAN
 *  [lbessant](https://wordpress.org/support/users/lbessant/)
 * (@lbessant)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/replace-search-with-google-search/#post-159941)
 * The search form code, as Avenir said is in **searchform.php**.
 * It looks like this:
 * `<form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?
   >">
    <div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name
   ="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div
   > </form>
 *  Thread Starter [adeboer](https://wordpress.org/support/users/adeboer/)
 * (@adeboer)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/replace-search-with-google-search/#post-159960)
 * I found it…thanks.

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

The topic ‘replace Search with Google search’ is closed to new replies.

 * 6 replies
 * 4 participants
 * Last reply from: [adeboer](https://wordpress.org/support/users/adeboer/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/replace-search-with-google-search/#post-159960)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
