Replacing Wordpress search with Google search and adsense

Posted by webstuffscan on February 8th, 2007


Wordpress by default provides search functionality out of the box. But instead you may want to use Google site search. The reason is simple, Google search can be monetized. If the user clicks on ads displayed after search you get paid!

Integrating Google site search is simple provided you are OK to have the search results on a different page. Just copy and paste the code generated by Adsense. But if you want to integrate Google search inside Wordpress, things become a bit complicated. Initially I tried creating a Wordpress page and then tried integrating Google search inside it. It didn’t work.

Then I came across this cool plugin called MightySearch. Using it is pretty simple,

Installation: Upload mightysearch.php to wp-content/plugins/ directory and activate it. Go into your Google account and get the form & search result code. Paste both code into MightySearch.

How to use it: Just create a new page, for example “Google Search”, so that the post slug will be “google-search”, and reachable at URL for example: http://yourdomain.com/google-search/ . Then type either one of the following text anywhere in your page to call the search form or/and search result;


<!--mightysearch--> - to call both search form and search result on the page <!--mightysearch_form--> - to call only search form on the page <!--mightysearch_result--> - to call only search result on the page.

Related Stuff
Copyright is retained by webstuffscan

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word