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.

Related posts:

  1. Display Google Adsense in Feedburner RSS Feeds
  2. Google Adsense Scroll Buttons A Possible New Feature?
  3. Wordpress Plugin – Adsense Manager
  4. It is Official Google Has Updated Page Rank
  5. Survey Gizmo Wordpress Plugin – Create Custom Surveys

31 Responses to “Custom Google Search Results Page on Your Wordpress with Adsense Deluxe”

  1. James on December 4th, 2006 7:06 pm

    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!

  2. Fenton on December 9th, 2006 1:53 pm

    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 :-)

  3. Freeze on December 10th, 2006 7:44 am

    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/

  4. Gobala Krishnan on December 10th, 2006 3:44 pm

    Hi Freeze,

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

  5. KeVin on December 11th, 2006 3:04 pm

    I believe he is Gobala…

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

  6. loshni on December 12th, 2006 2:40 am

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

  7. KeVin on December 12th, 2006 10:34 am

    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,

  8. Internet Online on December 18th, 2006 11:11 am

    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…

  9. Vivek on March 15th, 2007 10:01 pm

    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

  10. Vivek on March 15th, 2007 11:15 pm

    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!

  11. dayaparan on April 6th, 2007 5:51 am

    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.

  12. Tommy on April 26th, 2007 7:31 pm

    Does Super Adsense Wordpress Theme widgetized?

  13. Gobala Krishnan on April 29th, 2007 10:28 am

    Yes it is Widget-compatible

  14. Pufone on May 23rd, 2007 5:55 pm

    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="http://gobala.linktrackr.com/hostgator-bs:keywords">hosting websites offer this plugin installed by default. All you have to do is enter your AdSense ID and start earning.

  15. zebra on May 25th, 2007 4:29 pm

    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!

  16. Clive on July 23rd, 2007 10:52 am

    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.

  17. Andrew on July 30th, 2007 4:11 pm

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

  18. NetBloke on August 19th, 2007 12:30 am

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

  19. Gobala Krishnan on August 20th, 2007 10:14 am

    You can get it here: Adsense Deluxe

  20. Learning SEO Blog on October 3rd, 2007 4:19 pm

    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.

  21. Fat`ening your brain « Ivan Rubio’s Digital Journal on February 7th, 2008 6:58 am

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

  22. Patrick on February 24th, 2008 9:42 pm

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

  23. Fatcow Coupon on September 4th, 2008 3:25 am

    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?

  24. Saijo George on October 16th, 2008 12:33 am

    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

  25. ssieloff on November 11th, 2008 1:16 pm

    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!

  26. tos on November 28th, 2008 11:45 am

    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…

  27. Tim Sidden on December 11th, 2008 12:06 am

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

  28. Clare Swindlehurst on January 11th, 2009 4:27 am

    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.

  29. carvlc on May 23rd, 2009 5:15 am

    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.

  30. James on May 30th, 2009 5:33 am

    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!

  31. Google Search for Digitalpierce | Ray Pierce's Blog on July 15th, 2009 2:06 am

    [...] 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 [...]

Got something to say?





  • Join us On FaceBook