How to implement Google Adsense Search in Wordpress blog and Make Money如何实施搜索谷歌的Adsense在WordPress的博客赚钱
Search feature is a major requirement in any site.搜索功能是一个重要的要求,任何网站。 Its not easy to keep on searching in archive of any site.它不容易保持在存档搜索任何网站。 In this article we will learn how to implement AdSense search results within WordPress Pages.在本文中我们将学习如何执行 AdSense搜索结果中WordPress的网页。 Making money is another part of it.赚钱是另一部分。 This question was asked to my by这个问题问我的 Shankar香 after he saw its implemented on my site.他看到后,它的实施在我的网站上。 Prior to starting this tutorial I don’t take any responsibility if any article similar to this is already written.出发之前,本教程我不承担任何责任,如果任何类似的文章,这是已经写。 I have done it with my own experience.我做我自己的经验。
Here are the steps which we will follow.:-下面的步骤操作,我们也会跟进。 : -
- Making a Page on your Wordpress blog .制作网页的WordPress的博客。
- Creating Adsense code from Adsense account by Google Adsense for Search.创建AdSense代码从Adsense帐户的谷歌的AdSense for search 。
- Understanding , Creating a template file for Search Page and Adding Adsense Code理解,创建一个模板文件的搜索页,并添加AdSense代码
- Applying the template to the page you created in 1st step.应用模板的页面中创建第一步骤。
Create a page in your Wordpress blog:建立网页在您的WordPress的博客:
Its an easy step.它的简单步骤。
- Login to your Wordpress admin area.登录到您的WordPress的管理领域。
- Go to Manage > Write > Write Page.转到管理“收件”收件页。
- Add a suitable title and page-slug.购买一个合适的标题和网页蛞蝓。 Eg - Page Title : Site Search .例如-页面标题:网站搜索。 Page Slug - Google-search页弹头-谷歌搜索
- On the sidebar of editor you will find option of adding Template to the page.在编辑栏你会发现选项中添加模板的页面。 Leave it as Default.离开它作为默认。
- Don’t write anything in the page now, Just publish it and exit from it.不要写什么现在的网页,只要它发布和离开它。
Now the note the URL of the page which for an example can be现在注意到的网页的网址其中的一个例子可以 http://www.technospot.net/blogs/google-search . 。 Make sure its valid.请确保其有效。

Creating your Adsense code for search.创建您的AdSense代码的搜索。
Google Adsense allows you to add a form which act as a search box for any site.谷歌的Adsense可以让你添加的形式,作为一个搜索框的任何网站。 But there is one constrain with Adsense Search.但有一个限制与AdSense搜索。 Your site should be indexed properly if you want search result to be displayed from your site else it can be used for normal search.Follow the steps:您的网站应妥善索引如果你想搜索结果显示从您的网站其他可用于正常search.Follow的步骤:
- Now login to your Google Adsense account and go to Adsense Setup > Adsense for search.现在,登录到您的谷歌的AdSense帐户,并去AdSense设置“ AdSense for search的。
- After entering all the details of your site and customization you will get an option like在进入所有的细节,您的网站和定制你将获得一个选项一样

- Choose the third option and enter the search page URL which you created in previous step for me ie选择第三个选项,并输入搜索页网址您建立在以前的步骤,我即 http://www.technospot.net/blogs/google-search . 。
- Now you will get two codes.现在,您将获得两个代码。 One for the Search Form and other for search result code , which we will use it for our search page we created.一个用于搜索和其他形式的搜索结果的代码,我们将用它为我们的搜索页面,我们创建。

Understanding template and creating template file for Search Page了解范本,制造模板文件的搜索页
A template is something which can be reused again and again.模板是可重复一次又一次。 In印第安纳州 Wordpress template file WordPress的模板文件 can be used to add it to Pages.可将其添加到网页。 So when the page is called it uses the template along with it.所以,当网页被称为它使用的模板连同它。 Here we will create template file called as “Search.php”在这里,我们将创建模板文件被称为“ Search.php ”
- Create a template file named as “search.php” on your d esktop .创建一个模板文件命名为“ search.php ”你d esktop 。
- Now add the below code into it.现在,添加下面的代码粘贴到它。

- Insert the Adsense code for Search Result inside the commented area.插入AdSense代码的搜索结果内的评论区。
- Note remember to call header, footer and sidebar.注意:请记住,页眉,页脚和补充工具栏。 And preferably add your code in the content part.最好是添加你的代码中的一部分内容。
- Upload the file into the theme folder which you are currently using.上传文件的主题文件夹,您目前正在使用。
- Download the above code from here下载上面的代码从这里 search.txt (rename it as .php file before uploadling) search.txt (重新命名为。 PHP文件之前uploadling )
Changing the template of search page.改变模板的搜索页。
Tags:标签: integration一体化 , , search搜索 , , wordpress WordPress的

Posted on 10th June 2007 by 10日发布2007年6月 Ashish Mohta Ashish Mohta , A tech blogger who writes about solving day to day problems of people who use computer.一个高科技博客谁写了关于解决日常问题的人谁使用计算机。 He also writes on How to use the applications like Office, PC tips, Online tools,Browsers and more. All posts by他在书中还对如何使用应用软件,如办公室,电脑提示,在线工具,浏览器和更多。 所有职位 Ashish Mohta Ashish Mohta | Connect with me @ |与我联系@ Twitter 叽叽喳喳 | | Linkedin LinkedIn的 | | Facebook 脸谱 | | Stumble 失败 | Need more help? |需要更多的帮助? Ask your Questions at our 问问你的问题在我们的 Support Center 支援中心
- 10 handpicked Thanksgiving Gift Ideas 10个精心挑选的感恩礼品思路
- Thanksgiving Wallpapers and Screensavers Free Download感恩节墙纸和屏保免费下载



























Thanks for the informative post, I am however having trouble adding adsense in the middle of a wordpress post?感谢丰富的职位,但是我遇到了困难的AdSense中间的WordPress的文章? Could you assist me in doing this?你能帮助我做到这一点? How do you do it?你怎么做呢? Thanks谢谢
Wow, thanks.哇,谢谢。
I have been wanting to do this for a while and you tutorial was easy to follow and spot on.我一直在想这样做了一段时间,你补习很容易跟踪和位置。
Many Thanks许多感谢
Dan Collins -丹柯林斯-
Leave your response!离开你的答复!
Subscribe for Daily Updates
Free Feed Subscription
Weekly Podcast
Monthly Archives
Topics
What others are Saying ?