| 3 comments ]

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 post only, follow the steps below,

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.pageType == "item"'>
<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.

3 comments

Green Tea said... @ September 21, 2011 at 7:32 PM

Hi.
I am actually trying to put my adsense ads after the title of each posts but not showing it in the homepage. Is this possible? Can you help me please?

Anonymous said... @ November 27, 2013 at 12:22 PM

Hi there! I could have sworn I've been to this blog before but after checking through some of the post I realized it's new to me. Anyhow, I'm definitely happy I found it and I'll be book-marking and checking back often!
website design

shivani said... @ November 3, 2015 at 1:20 PM

very very good posts ...really like it

Post a Comment