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.
- Google adsense adds 4 new languages
- Google custom search engine!
- How do I remove Windows Live Search box?
- Google Adsense team in India
- How do I insert Adsense tags inside WordPress posts?
