Adding Google Custom Search to WordPress

I like to replace the default search functionality in WordPress with Google Custom Search. While recently redesigning a site using a child theme of the Twenty Eleven theme for WordPress, I found that Google had discontinued the IFrame option for Google Custom Search.

Fortunately, I found this post: Integrating a Google Custom Search Engine into your WordPress blog. The post clearly shows how to add Google Custom Search to WordPress without using a plugin. It shows how to

  • generate the code for your Google custom search engine
  • create a new page to contain the search results. Note: when you paste the code from Google into WordPress, make sure you remove any blank lines from the JavaScript, or the page may just render "Loading..."
  • modify your search form template (usually named searchform.php)
  • modify the CSS (usually named style.css) to style the search form
Filed Under: 
Tagged With: , ,

Want tips to rocket-boost your website?

Simply sign up.
Ready to Blast Off?

Let's talk.

Contact OptimWise
crossmenuarrow-right