How To Remove AdSense Ads from the Homepage

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.

0 comments:

Post a Comment

 

Support By Blogger