Custom Google Search Results Page on Your Wordpress with Adsense Deluxe

I was looking at LiewCF’s extensive documentation on how to create a custom Google search results page within your Wordpress blog, and I decided it was just too techy for me.

So I devised a simpler approach – using Widgets and the Adsense Deluxe plugin. This is an approach that most of us regular folks will be able to accomplish easily, assuming you already have these components:

  • A Google Adsense account and a Wordpress blog :)
  • Wordpress widgets and a widget-compatible theme
  • The Adsense Deluxe plugin installed and activated

This interesting exercise will produce your own custom Google search results page with your Adsense ads on them, and the best part is that it will appear as part of your overall theme.

Step1: Create Your Search Results Code in Google Adsense

Login to your Adsense account and create a new “Adsense for Search” block. Choose “Google Web Search + Site Search” and

Recommend that you lose the Google image and opt for the Google name in the search button instead. Put the search button beneath the search field like the picture below.

googlesearch-05.jpg

For search results options, choose “Open results within my own site”. For the URL, you can put something like this:

www.yourdomain.com/directory/search-results/

Replace “directory” with the folder you’ve installed Wordpress in. If you have Wordpress installed on the main domain (root) just enter something like this:

www.yourdomain.com/search-results/

This is because you will later create a Wordpress page called “Search Results”.

Step 2: Create Your Search Box Using Text Widgets

Now if you already have Widgets installed and you’re using a Widget-enabled theme, all you need to do is copy the search codes and put them into a text widget, which you can place right at the top of your sidebar.

googlesearch-02.jpg

Once you’ve generated this text widget, it may look something like this (depending on your theme):

googlesearch-03.jpg

Now you have your search form up, so you can start to create your custom results page.

Step 3: Create A New Adsense Deluxe Block

Now, the funny thing with Wordpress is that be default, you cannot insert Javascript or PHP codes into posts, unless you have some kind of plugin that enables it.

The Adsense Deluxe plugin not only enables you to add Adsense codes into your posts and pages; it can also be used to hold and insert Javascript. Therefore, it can also be used to hold your customs search page code.

Voila!

googlesearch-01.jpg

Go to Options > Adsense Deluxe and create a new block. You can call is “googlesearch” and insert the codes into the settings.

Now you’ll have a custom code that you can use in your page.

Step 4: Create A New Page for Search Results

Go to Write > Pages and create a new page, naming it Search Results. Within the page, insert your new Adsense Deluxe code that will generate the custom search results page. Your code, depending on what you named it, may look something like this:

< !– adsense#googlesearch –>

You can also add stuff to the beginner or the end of the page, for example some text, banners or other elements. Save the page.

Step 5: Test Your New Custom Search Page

Now you can test your custom Google search results page. Mine looked something like this:

googlesearch-04.jpg

So there you have it: a simple, easy way to add Google custom search results to you page. Watch your Adsense income soar, all while maintaining your site navigation and layout.

Remember though that the Google search tool will only return results from your site that are already indexed in Google, so it may not be suitable for new sites.

Enjoy, and if you want to mater Wordpress I recommend you take a look at the Wordpress Adsense System and our list of tools and plugins.

RSS feed

31 Comments

Comment by James
2006-12-04 19:06:41

Great Idea!
I had looked at the google custom search program and figured my theme would be incompatible because of width constraints, but your simple explanation makes perfect sense.

thanks for the tip!

(Comments wont nest below this level)
 
Comment by Fenton
2006-12-09 13:53:05

Well, you are really great.

I’m new to wordpress and your insights at this page really help me a lot.

Kepp up the good work :-)

(Comments wont nest below this level)
 
Comment by Freeze
2006-12-10 07:44:18

Great tips Gobala.

Another way to have Google Search result open on your Wordpress blog is by using MightySearch plugin. I’m using it now on my blogs. It’s easy to use too.

Here’s the URL:
http://mightyhitter.com/main-page/plugins/mightysearch/

(Comments wont nest below this level)
 
Comment by Gobala Krishnan
2006-12-10 15:44:34

Hi Freeze,

That’s useful! This Mighty Hitter blog owner… is he from Malaysia?

(Comments wont nest below this level)
 
Comment by KeVin
2006-12-11 15:04:06

I believe he is Gobala…

he also owns a forum which is known among malaysian hyips and autosurf players –> nogold.com

(Comments wont nest below this level)
 
Comment by loshni
2006-12-12 02:40:44

nogold.com is belong to other people not gobala.
anyway gobala has done a good job by giving a lot of useful info.

(Comments wont nest below this level)
 
Comment by KeVin
2006-12-12 10:34:39

loshni,

I guess you have read my sentence wrongly.

I was replying to Gobala about mightyhitter who is the real owner of nogold.com

regards,

(Comments wont nest below this level)
 
Trackback by Internet Online
2006-12-18 11:11:49

How to customise and enchancing your search page…

I was reading at EasyWordpress on the in depth tutorial on how to customise the search page. I decided to try it out after I read it. Basically the idea of this customisation is to retain visitors in my blog rather than guide them to another google sea…

(Comments wont nest below this level)
 
Comment by Vivek
2007-03-15 22:01:28

Hi,
Your idea is really sweet. I tried implementing it and it worked well. The only problem I had is that I am unable to determine the frame size of the results page. As a result, the width of the results overflow into the second column, pushing it down awkwardly. Do you have any idea how to deal with this?

Thanks,

Vivek

(Comments wont nest below this level)
 
Comment by Vivek
2007-03-15 23:15:41

By the way, I realised that I can now add RSS content within the page, rather than just the sidebar. Infact, with an RSS reader like feed2js, I get great flexibility to use RSS content from delicious or other sources using your technique. I’ve explained it here with credits to you. http://viveks.info/rss-feeds-within-post-in-wordpress-horray

Thanks a ton!

(Comments wont nest below this level)
 
Comment by dayaparan
2007-04-06 05:51:24

check out this search widget here http://gallery.yahoo.com/apps/8324, it can not better this.

This plugin uses yahoo UI and Yahoo Exit

2. Provide you with the Goggle suggestt style search functionality.

2. User can easily search your blog, for comments, images, post, achieves and everything. Live search style.

3. User can search your blog pages that is listed in Yahoo and Google.

4. Meyshan King search widget integrated with Google custom search, web search, video search, blog search, and local search

5. Meyshan King search widget also integrated with Yahoo web search, video search, news search and local search.

6. Meyshan search widget is inbuilt with snap preview so that easier view the search results before click on the link.

7. Meyshan search widget on click uses yahoo exit to open the new sites, with leaving your site.

8. Meyshan Search widget is Google Adsense integrated and in build with which help you make some money.

9. Easy to configure and install.

10. Installation is very easy Just copy the Meyshan search king folder to the plugin folder and activate, it will automatically over write your default search.

11. Get Google api key, adsense code(optional) custom search link (optional) and configure it under option in your wordpress admin. That is all.

12. You can control where to display the Google adsense, either on the top or in the right side.

(Comments wont nest below this level)
 
Comment by Tommy
2007-04-26 19:31:44

Does Super Adsense Wordpress Theme widgetized?

(Comments wont nest below this level)
 
Comment by Gobala Krishnan
2007-04-29 10:28:59

Yes it is Widget-compatible

(Comments wont nest below this level)
 
Comment by Pufone
2007-05-23 17:55:02

AdSense management plugins for WordPress make your life easyer. There are lots of tutorials out there on how to set up AdSense on your blog. Some free blog hosting websites offer this plugin installed by default. All you have to do is enter your AdSense ID and start earning.

(Comments wont nest below this level)
 
Comment by zebra
2007-05-25 16:29:09

hello.

I’m trying to get the websearch to work w/my website
(powered by wordpress blog) what i’m having problems with is getting the google
search to work. I placed the code for the actual search from in my
sidebar, which appears and looks fine. In the setup of the search bar,
i told it to display the results at “http://www.rightblognews.com/google-search/” — i
create a page in the admin of wordpress, ‘google-search’. I then
continue to place the code given by the search setup in that page
(manage pages->edit page in wordpress) — all I get is a blank page.

thanks in advance for any/all help!

(Comments wont nest below this level)
 
Comment by Clive
2007-07-23 10:52:08

I use the same ‘theme’ for 4 blogs and have always had problems with the Adsense plugin and so have deactivated it. This gives me hope that I might be able to get it working – thanks.

(Comments wont nest below this level)
 
Comment by Andrew
2007-07-30 16:11:53

the search page never shows up in the correct page? Why? It either shows all blank or goes back to the blog home page

(Comments wont nest below this level)
 
Comment by NetBloke
2007-08-19 00:30:45

Can anyone directly link me to the Adsense Deluxe widget? I cannot find it anywhere.

(Comments wont nest below this level)
 
Comment by Learning SEO Blog
2007-10-03 16:19:09

Thanks for the valuable information. I added it to my SEO Practices Blog. Right now I’m just trying for it to display correctly on my site. I guess some css change has to be done.

(Comments wont nest below this level)
 
2008-02-07 06:58:46

[...] Custom Google Search Results Page on Your Wordpress with Adsense Deluxe | Wordpress Tutorials And Bl… [...]

(Comments wont nest below this level)
 
Comment by Patrick
2008-02-24 21:42:15

Hi
I used your tips to implement Google Custom Search on my site! Tnx!
Patrick

(Comments wont nest below this level)
 
Comment by Fatcow Coupon
2008-09-04 03:25:55

Thanks for the superb tips. Anyway, what do you think about PPC method? I mean pay per click. Do you think this can be work?

(Comments wont nest below this level)
 
Comment by Saijo George
2008-10-16 00:33:14

Wordpress users can actually go I more step and integrate the Adsense Search to the Wordpress page itself with out a plugin

Look @ the search on my blog or this image to see what i mean : http://img80.imageshack.us/img80/9720/searchintegrationso7.png

Just be sure to remove all adsense ads from the search page , coz its against their terms to have adsense ads on search page

(Comments wont nest below this level)
Comment by ssieloff
2008-11-11 13:16:21

Where is your blog located? How did you get the search results that you show in your post dated 2008-10-16? This is EXACTLY what I am looking for … any help would be greatly appreciated!

 
 
Comment by tos
2008-11-28 11:45:59

i think this is against the TOS.
afaik, it said the search keyword must be typed-in manually by human and must not automatically generated.

or maybe i’m wrong…

(Comments wont nest below this level)
Comment by Clare Swindlehurst
2009-01-11 04:27:43

I think you’re right. I’m pretty sure the TOS say you can’t put adsense results on a search results page. Though you can put them on the page with the search box.

You need to get a Google custom search engine instead – with those you can monetize the ads that appear within the search results.

 
 
Comment by Tim Sidden
2008-12-11 00:06:53

This is the most ingenious way to make money online. Thanks for this great info.

(Comments wont nest below this level)
 
Comment by carvlc
2009-05-23 05:15:31

Hi Gobala,

Thank you so much for this tip. I think it is a great way to monetize on blogs, I will definately give it a try soon.

(Comments wont nest below this level)
 
Comment by James
2009-05-30 05:33:59

Hi there,

Having problems with the search results – got the box up as a widget fine but the results don’t seem to display on the “search” page I set up?

Thanks for the walkthrough – very informative!

(Comments wont nest below this level)
 
2009-07-15 02:06:16

[...] any of you techie type people are interested, this is how I did it. The article needs updated for the newer versions of Word Press, but essentially it’s the [...]

(Comments wont nest below this level)
 

Sorry, the comment form is closed at this time.