Add google adsense for search in your theme

2009年4月15日 | 分类: 電腦樂園 | 标签: , , | 浏览: 721 次阅读

Today, I added a google adsense for search in my blog at right up corner. First, I try to make a new search web-page named searchresults.php and then put the adsense search results code into it. It work ,but not perfect. I mean I failed. However, I find out another way from google.

First of all, go to the google adsense and get a “adsense for search”. When you see the “Opening of search results page”, choose 3th option “Open results within my own site”. Enter URL where search results will be displayed, for example http://www.8suo.com/search. then submit and get code(I ignore unimportant process). Don’t forget choosing appropriate width of results area(my width is 600px).

Secondly , go to your blog admin and create a new page. Name the slug search. Put your Search Results Code in it, and save.

Finally, replace your Search Box Code. Search Box may exist in many wordpress themes. They may appear in head.php or sidebar.php. When all is done, upload your search box code.

congratulation, You did it. :cool:


声明: 原创文章,转载请注明转自 8suo -> Add google adsense for search in your theme
目前还没有任何评论.

注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。