How To Remove AdSense Ads from the Homepage

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

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:


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

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

<!-- Your AdSense code here -->


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

Related Posts

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. Anjula Hettige says:

    @Evolution - World

    😀 😀 😀

  3. 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
    mail me boss

  4. lmi seng says:

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

  5. Anne says:

    nice tip
    I tried but it was not worked for me 🙁
    pls check

    thank you!

  6. DBA says:

    Thank you very much
    It worked for my website

Leave a Reply