I am trying to replace the wordpress search engine by a custom adsense searchbox but it isn't working. Could someone please clarify how to do this?
What I have been doing is the following:
1. I am putting the adsense code for search results in the search.php file.
2. For the search box, I am creating a new searchform.php file (sinse the 2012 theme does not come with a searchform.php file) and pasting the adsense code there.
It could well be that I am putting my code in the wrong place in the search.php and searchform.php files, so specific instructions on exactly where I need to insert the code would also be greatly appreciated.
Thanks in advance for any help.