Advertisements

How To Remove AdSense Ads from the Homepage

Posted by Lasantha Bandara on May 18th, 2009 File Under : adsense6 Comments
Advertisements

This post explains how to hide Google Adsense Ads In Home Page And display them only Inside Post pages Alone.

If you want to hide Google Adsense Ads In Home Page ,follow the steps below.

1.Generate Parsed code for your adsense code because we cannot put adsense code directly in the xml.So parse it using AdParser.

After parsing,your ad code Should look like this.


2.Log in to your dashboard--> layout- -> Edit HTML

3.Click on "Expand Widget Templates"

4.Scroll down to where you see this:


<data:post.body/>

5.Now Copy below code and paste it before the above line.


<b:if cond ='data:blog.pageType == "item"'>

<!-- Your AdSense code here -->

</b:if>

Note : You must you must replace <!-- Your AdSense code here --> with Your Adsense Parsed code.

6.Now save your template and you are done.

File Under : adsense

6 Responses to “How To Remove AdSense Ads from the Homepage”

  1. Evolution - World says:

    Hello Lsantha,

    Thanks for referring here :) It works well! But the ad is shown in the end of the post. Is there any way that ad can b shown between the post???

  2. Ravinder Mehta says:

    Hello Lasantha,
    I want to show the ads just below the title of post except the home page.Give me the solution.Thanks in advance
    mehta.mnc@gmail.com
    mail me boss

  3. lmi seng says:

    Then how do I hide Adsense ads on the sidebar of the homepage?

  4. Anne says:

    nice tip
    I tried but it was not worked for me :(
    pls check http://www.musicvidos.blogspot.com

    thank you!

  5. DBA says:

    Thank you very much
    It worked for my website www.acehints.com

Leave a Reply