How To Integrate Google Custom Search into WordPress Blog and Make Money?
July 26, 2009 by Shanker Bakshi
Filed under Blogging Resource, WordPress
Google custom search can be use as a money making tool if you know how to fix it properly with the soul of your WordPress blog theme. I must say that the default WordPress search engine barely serve the purpose, So I am giving you here a heck to replace that search engine with the Google Custom Search and also make some when your users search a quarry and click ads placed on Google Search Results page.
Here is the screen shot of how I integrated Google Custom Search into my WordPress self hosted blog.
Now let me explain how you can do this in seven small and easy steps:
STEP 1
Sign up for your Google AdSense Account if you haven’t registered yet here https://www.google.com/adsense/ . If you are using AdSense ads on your site the you can head over to google custom search via Google AdSense > AdSense Setup > AdSense for Search.
STEP 2
Fill in the necessary parameters like Search Type: whether you want your users to search your site only, or a collection of sites, or the entire web. If you want users to search your sites then specify it in the given box with complete URL of a site or list of sites to search across. These can be individual pages, parts of sites, or entire sites.
STEP 3
After that choose search Box options, this is where you specify the look and the feel of your search box. You can shape your Google Custom Search Box.
STEP 4
Now this is the step which will integrate google custom search into your WordPress self hosted blog, so please read it carefully.
While selecting opening of search results page you need to select “Open results within my own site” and specify the URL like:
“http://www.yousite.com/search/”
Exclude inverted commas in URL above and replace “yoursite.com” with the domain name your site. This /search/ would be the page where we will display the search results within our blog.
STEP 5
In this step you need to Specify where you want the AdSense ads to be placed in relation to search results. Your options are top and right, top and bottom and right. Well you can see that I have chosen AdSense ads to be appearing on Top and bottom of search results. Well if you wish you can manage these setting later on through Google AdSense > AdSense Setup > Manage ads.
STEP 6
Now save your search Engine. Check the term and condition box (well if you agree). Name your search engine in the given box something like YOUR SITE SEARCH ENGINE and then hit the SUBMIT button.
You will get two boxes with codes. One is search box code. Paste this code in the page where you’d like your search box to appear. If you want it to appear in sidebar then follow this, WordPress Admin>Appearance>Widgets> select Text widget and then paste the code.
STEP 7
Now you need to paste the code given at the second box. For this you need to create a new page in your WordPress blog with the name “search”. This should exactly be the same as we typed while specifying the URL in step 4. For creating a new page go to WordPress Admin>pages> Add New. You can uncheck allow comments and allow pings boxes given below under “Discussion” option of your new page.
Select HTML window of your WordPress editor, paste the code and PULISH this page and you are done. To test type some keywords in Google Custom Search Box and see how the search results are appearing on your blog.
Now some of you may raise your eyebrows as I ask you to create a page with name “search” and publish it the step 7 above but you can’t see such a page on my page list in header, Is this going on in your mind right now? Well if you search google you will find enough information on how you can hide OR exclude some pages to appear in your site page list. If you wish you can use a WordPress Plugin for this purpose, Exclude Pages is a WordPress Plugin which adds a checkbox, “include this page in menus”, which is checked by default. If you uncheck it, the page will not appear in any listings of pages.
I hope this will help you integrate your Google Custom Search into your WordPress Self Hosted Blog, and also make some money when your users click your AdSense ads appearing onsearch result page.
subscribe to Shanker Bakshi dot Com

















[...] More here: How To Integrate Google Custom Search into WordPress Blog and Make Money? [...]
I just used your guide on integrating google search onto my blog and it worked out. I also like the plugin to exclude the pages from your header. Thanks Greg Ellison
Reply
[...] more: How To Integrate Google Custom Search into WordPress Blog and Make … internet [...]
[...] the original post here: How To Integrate Google Custom Search into WordPress Blog and Make … SHARETHIS.addEntry({ title: "How To Integrate Google Custom Search into WordPress Blog and Make [...]
[...] more: How To Integrate Google Custom Search into WordPress Blog and Make … | More Categories: Adsense – Make Money Now Tags: Adsense – always – Home – [...]
[...] here to read the rest: How To Integrate Google Custom Search into WordPress Blog and Make … Share and [...]
Thanks for posting this. I don’t know how to do this right.
Reply
[...] more from the original source: How To Integrate Google Custom Search into WordPress Blog and Make … | More Categories: Wordpress Plugin – wordpress plugin google Tags: [...]
Hey bro
For some weird reasons I can’t change the ads border to something else, even though it was set up as #FFFFFF (white).
Any solution?
Yan
Reply
Shanker Bakshi Reply:
July 27th, 2009 at 3:39 am
Yes you can do that,
Just follow this link
http://www.google.com/coop/cse/
Then head over to “manage your existing search engines”
Then click “Control Panel”
Then choose “look and Feel” from Side menu.
You can customize colors in your search results for:
Border
Title
Background
Text
Links
Visited Links
Cached Link
Reply
I DID but some unknown reasons, the default blue border remained unchanged. Anyway, thanks bro. I just thought maybe there could be another option I know nothing of.
Thanks!
Yan
Reply
Shanker Bakshi Reply:
July 27th, 2009 at 4:18 am
More Over you just need to make necessary changes over there at http://www.google.com/coop/cse/ and hit the “SAVE CHANGES” button, no need to copy and paste code again.
remove the browser cookies and check again, i am sure it will work.
Reply
[...] the rest here: How To Integrate Google Custom Search into WordPress Blog and Make … Share and [...]
The biggest thing I hate about Google search is that it redirects you over to Google and then it’s not as accurate.
-Mike
Reply
The biggest thing I hate about Google search is that it redirects you over to Google and then it’s not as accurate.
-Mike
P.S. – Sorry, forgot to tell you great post!
Reply
I m using ggl custom srch from 1st day i applied adsense to my site bt was opening results in google will change it….
Reply
Hi Shanker
on ur serch page u r getting adsense-srch ads and also other adsense-in line text ads. I think as per Adsense policies, adsense-srch pages cant keep other adsense ads. Pls do uipdate it.
Create a seperate page but not from AddNewPage. u can check mine site for how I implemented serch-code.
http://www.oceanofweb.com/search.html
Reply
Thanks for sharing , I will try soon on my blog. It’s clear and I can easily follow the steps.
Reply
I have the google search on my site but did not customize it as you instructed. I will try this, of course. Thanks for sharing.
Reply
whooooah, amazing…thanks shanker.
Reply
Awesome how to guide, my readers are going to love this post.
Reply
great tips . i will follow this to increase my adsense revenue
Reply
does not work 0 you cant name a page search in wp as your url will not be that but a page id
Reply
Search box is a important thing to have on our blog and this Adsense search box is an awesome to increase our revenue and generate some $$ from it as well.
Thanx for sharing those steps very easily. i will try it on my blogs and wait for the results.
Reply
i am facing problems when applying ur tips to integrate the google search
it goes to
http://my-php.net/notify/1.php
even i tried again and again plz guide me
m waiting 4 ur help
plz soort it out y its happening
Reply
dear shanker
where are u i am waiting for the solution of this problem
plzzzzzzzzzzzzzzzzzzzzz
check it out
Reply
Shanker Bakshi Reply:
August 4th, 2009 at 3:33 pm
It should work, please mail what procedure you are following at shankerbakshi@gmail.com
Reply
SHANI Reply:
August 4th, 2009 at 8:59 pm
dear shanker
i ve got the code which was in two boxes
the upper box code which was for the search i pasted in in widget
then the lower box code i pasted in the search page of the blog
which i created as ur directions
but at the end it is giveig the error which i told u
if u say i can mail u
my login and id for word press account
waiting for ur reply
shani
Reply
Net Age | Web Design Reply:
November 25th, 2009 at 7:07 am
What was the final outcome here? Did you manage to get sorted out, Shani? What was the exact cause of all your problems then?
Thanks for this tutorial. I need to get this doen on my blog soon.
One thing i noticed is in the search reuslt page is.
after search reuslts at the bottom, i see tweetmeme php code as it is.
Do check that out.
Reply
Shanker Bakshi Reply:
August 6th, 2009 at 1:44 pm
I will see to it, Thanks
Reply
Good information…share more please…
Reply
Great tips, Shankar. Always love coming in your blog.
Reply
Many blogs fail to hit the key important parts of this topic and I feel you have directly hit the nail on the head and thanks again for this.. this is pure gold my friend.
Reply
[...] better than I could imagine. This passionate guitarist taught me how to install WordPress locally, How to integrate google Custom search in a blog theme and many other valuable implications. Thanks very much Abhinav for sharing your tech “GeekNess” [...]
Please keep posting great information because you really do put good info out there on this topic!
Reply
Wow! thank you for this blog post… ive been looking for information on this topic for a while!
Reply
Wow! Wow is all I can really say at such a great post and such a great blog like this one. I am sure to keep reading here!
Reply
Did this yesterday and it worked like a charm. Thank you.
.-= Dean Saliba´s last blog ..Being Bored Has It’s Advantages =-.
Reply
thanks kardes
.-= haber´s last blog ..?ki Polis Memuru Yaraland? =-.
Reply
thank you for your clear explanation I established it my blog but it was not so good for making money.I was disappointed
.-= Ahmet ATR´s last blog ..Edge of Darkness R5 LiNE XViD V2 – IMAGiNE =-.
Reply