How To Create & Add a Google Custom Search Box To WordPress Which Works

1 Flares Twitter 0 Facebook 0 Google+ 1 LinkedIn 0 Pin It Share 0 StumbleUpon 0 Buffer 0 Buffer 1 Flares ×

Google custom search is so accurate i use it every day on my own sites. Why? Because the default WordPress search isn’t much help and normally returns irrelevant results.

There’s also quite a few advanced search plugins which will give your readers a better chance of finding what they need however nothing beats Google when it comes to search,  so why not create a custom search engine for your own site?

Here’s a few reasons you might want to:

  1. Include one or more websites, or specific web pages
  2. Host the search box and results on your own website
  3. Customize the look and feel of the results to match your site

First up you’ll need to create a custom search engine.

There’s 3 very easy steps to creating a custom search engine with Google:

  1. Setup Your Search Engine
  2. Choose or Customize a Style
  3. Get The Code

Simply enter a name and description along with the site URL your want the search engine to access for results.

Setup Your Search Engine

Setup Your Search Engine

Next step is to Choose or Customize a Style. Its here you can customize the look and feel of your search  controls and results page.

Choose or Customize a Style

Choose or Customize a Style

Third step is to Get the code. I simply copied and pasted this code into a standard text widget for HTML. This is because my theme allows this to work. If yours doesn’t try a php widget otherwise you’ll need to add the code to your templates using a WordPress hook.

Get The Code

Custom Search Element Code

That’s it. You should be very happy with the results you get from using the Google custom search engine.

I use it myself every day because its more accurate than any other search engine and it always produces accurate results which are relevant especially if you’ve included a good amount of relevant keyword and key phrases in your content.

If you do go ahead and create a custom search box i would like to know if you are happy with the results.

1 Flares Twitter 0 Facebook 0 Google+ 1 LinkedIn 0 Pin It Share 0 StumbleUpon 0 Buffer 0 Buffer 1 Flares ×
Brad Dalton

Brad Dalton

WordPress Consultant 110+ Hrs/Week, traveler and lover of big surf, making new friends & my family. Read more about Brad Dalton or contact me if you need help with WordPress.
Brad Dalton

@wpsitesdotnet

Howdy! WP Sites creates daily tips & tutorials providing solutions for WordPress users.
3 Ways To Add Text Before Content On Your Home Page http://t.co/0xQHbLwEK5 - 16 hours ago
Brad Dalton

Never Miss The Latest Design Tips!

Speak Your Mind

*

Need A Solution for WordPress?

solutions for wordpress
WP Sites offers new posts & 900+ existing tutorials which include:

  1. 1. The basics on using WordPress to build & design a website
  2. 2. Tested PHP & CSS code snippets for easy customization of your theme
  3. 3. Tips, tricks & idea's on how to solve problems with WordPress

 
Enter your email address below & click "Get Updates!"