How To View Adsense only on Blogger Homepage

Adsense can only display 3 Adsenses in a page. So, if we place Adsense in sidebar, post, footer, or header, we must arrange it so that only 3 Adsenses in a page. Adsense can only display in single post, or in homepage.

To display Adsense in blogger homepage only (main page), follow the steps below,

Google Adsense Only On HOmepage

1. Login to blogger
2. Go to Layout  >>  Edit HTML  >>  Click on Expand Widget Template. Find Adsense widget. For example, Adsense is placed with widget id HTML3.
<b:widget id='HTML3' locked='false' title='' type='HTML'>
3. Add code with bold text.
<b:widget id='HTML3' locked='false' title='' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<div style='float: left;padding:20px 0px 40px 0'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != &quot;&quot;'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</div>
</b:if>
</b:includable>
</b:widget>
4. Save Template.

Post a Comment

Previous Post Next Post