Title: problem with Google custom search engine
Last modified: August 24, 2016

---

# problem with Google custom search engine

 *  [surukiryuinsho](https://wordpress.org/support/users/surukiryuinsho/)
 * (@surukiryuinsho)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/problem-with-google-custom-search-engine/)
 * Hello all, I did not see a topic like mine, therefore I am asking. I put my Google
   custom search code in many ways in different styles for my web and all were wrong.
   Can anyone help me??
    I have two codes one for search box and other for results.
   Some people put both in editor and some put one in widget and the result code
   in editor. I did all ways as said by people online and couldn’t do it correctly.
   I use mystyle theme. I have search-form.php and searchresults. Please tell me
   where to put my codes and which codes to delete….
 * :((
    Thank you

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

 *  [robinmnz](https://wordpress.org/support/users/robinmnz/)
 * (@robinmnz)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/problem-with-google-custom-search-engine/#post-6156139)
 * Hi there
    I am not sure if I am picking you up correctly, but you need to have
   the search code on a page, say, named “Search”, and the search result code will
   go on another page, call it “Search result”.
 * You will need to add it in html mode, then save and don’t re-open it as the code
   can scramble.
 * You can also put the search code into a widget; you may need to have a plugin
   such as “PHP Text Widget” for this to work.
 * Good luck!
 *  Thread Starter [surukiryuinsho](https://wordpress.org/support/users/surukiryuinsho/)
 * (@surukiryuinsho)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/problem-with-google-custom-search-engine/#post-6156268)
 * it did not work. I did exactly what you said and it’s not working.. I am going
   crazy!!!
 *  [robinmnz](https://wordpress.org/support/users/robinmnz/)
 * (@robinmnz)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/problem-with-google-custom-search-engine/#post-6156297)
 * Are you using the php text widget or similar?
 * You should also try adding the code to a basic html page (outside wordpress) 
   first, to see if it works.

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

The topic ‘problem with Google custom search engine’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [deal](https://wordpress.org/support/topic-tag/deal/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)
 * [stuff](https://wordpress.org/support/topic-tag/stuff/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [robinmnz](https://wordpress.org/support/users/robinmnz/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/problem-with-google-custom-search-engine/#post-6156297)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
