How To Integrate Google Custom Search into WordPress Blog and Make Money?

by Shanker Bakshi on July 26, 2009

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.

SBDC Search Box2

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.

Search Result Style

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.



Google Buzz
Related Posts with Thumbnails

Related Posts

{ 33 comments… read them below or add one }

Greg Ellison July 26, 2009 at 7:40 pm

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

Ridiculous blogger July 27, 2009 at 12:32 am

Thanks for posting this. I don’t know how to do this right.

Reply

Blogging Tips July 27, 2009 at 3:23 am

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 July 27, 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

Blogging Tips July 27, 2009 at 3:44 am

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 July 27, 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

Free Arcade Games July 27, 2009 at 7:12 am

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

Free Arcade Games July 27, 2009 at 9:28 am

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

Atul July 27, 2009 at 5:39 pm

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

Atul July 27, 2009 at 5:49 pm

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

Ruchi July 28, 2009 at 6:18 am

Thanks for sharing , I will try soon on my blog. It’s clear and I can easily follow the steps.

Reply

Marlene July 30, 2009 at 7:04 am

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

natural beads July 30, 2009 at 4:27 pm

whooooah, amazing…thanks shanker.

Reply

Deneil Merritt July 31, 2009 at 11:35 pm

Awesome how to guide, my readers are going to love this post.

Reply

EarningStep August 1, 2009 at 1:39 am

great tips . i will follow this to increase my adsense revenue

Reply

john August 1, 2009 at 5:07 am

does not work 0 you cant name a page search in wp as your url will not be that but a page id

Reply

Custom term paper August 3, 2009 at 10:51 am

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

SHANI August 4, 2009 at 10:00 am

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

SHANI August 4, 2009 at 2:26 pm

dear shanker

where are u i am waiting for the solution of this problem

plzzzzzzzzzzzzzzzzzzzzz

check it out

Reply

Shanker Bakshi August 4, 2009 at 3:33 pm

It should work, please mail what procedure you are following at shankerbakshi@gmail.com

Reply

SHANI August 4, 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 November 25, 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?

Nihar August 5, 2009 at 6:48 pm

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 August 6, 2009 at 1:44 pm

I will see to it, Thanks

Reply

Masrule Hamid August 7, 2009 at 8:52 am

Good information…share more please…

Reply

Article Video Robot August 14, 2009 at 10:29 am

Great tips, Shankar. Always love coming in your blog.

Reply

Haddon August 27, 2009 at 9:38 am

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

Gael September 11, 2009 at 2:35 am

Please keep posting great information because you really do put good info out there on this topic!

Reply

Addy September 11, 2009 at 2:46 am

Wow! thank you for this blog post… ive been looking for information on this topic for a while!

Reply

Bardon September 11, 2009 at 7:14 am

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

Dean Saliba November 19, 2009 at 2:04 pm

Did this yesterday and it worked like a charm. Thank you. :)
.-= Dean Saliba´s last blog ..Being Bored Has It’s Advantages =-.

Reply

haber December 11, 2009 at 3:43 pm

thanks kardes
.-= haber´s last blog ..?ki Polis Memuru Yaraland? =-.

Reply

Ahmet ATR February 20, 2010 at 6:22 pm

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

Leave a Comment

{ 8 trackbacks }

Previous post:

Next post: