Add Custom Search Engine to your wordpress blog easily

Replace your default wordpress theme search engine with Google Custom Search Engine.
There are 3 option’s to show the result page:-

    Open results on Google in the same window.
    Open results on Google in a new window.
    Open results within my own site.

Google-SERP-option
If you want to have results within your own site, then you need to create another page similar to your blog pages(to make it look more professional), and add the codes from Adsense account. This requires one to have some knowledge about html and some other basic Internet programming knowledge.
If you are using a magazine style theme and if you are showing additional advertisements on the sidebar, then remove it from your result page. Because its an violation of adsense policy.

There is another easy option, which doesn’t require any programming knowledge.
1. Open results on Google in the same window.
2. Open results on Google in a new window.

Now you decide about opening results page in new window or in the same window(Its considered user friendly, if all links open in same window, so we recommend selecting the 1st option. i.e., Open Results in the same window.)

Goto your Adsense account or Google Custom Search Engine page and get the codes to paste in your wordpress blog.

Now login to your wordpress and click on the “Design” tab –> Click on “Theme Editor”. Now search for “searchform.php” or similar file and click on it.
Now look for <div class="search"> </div> tags and delete everything inbetween them and paste the CSE codes from your adsense or Google CSE account and save it.
Google-Custom-Search-Engine-results
For Example:- Look at my Custom Search Engine[Top right corner — near navigation bar] and search for any keyword and see the result page.

If you are good at HTML and PHP, you can integrate the CSE into your own site and you can make the results to be shown in your own site. This looks even more professional.
But having any type of Custom Search Engine is better than not having one, so follow any method and integrate CSE to your blog.