A blog about cutting edge technology at its maximum pace.

Ritesh Warke On Thursday, October 13, 2011
Earlier I have explained,  
Now I am going to explain you how to show adsense ads only on blog homepage or on blog post page.
Just follow the instructions,

Go to Dashboard > Layout > Edit HTML > Expand Widget Templates.

Recommended post What is google ranking.
To show ads on homepage only,

If you want to add your ads after post title but only show in homepage


&lt;div class='post-header-line-1'/&gt; <br>
&lt;div class='post-body entry-content'&gt; <br>
&lt;b:if cond='data:blog.pageType != &amp;quot;item&amp;quot;'&gt;<br>
<b><span style="color: red;">
YOUR ADVERTISEMENT CODE
span>b><br>
&lt;/b:if&gt; <br>
<br>
&lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;<br>
<br>
&lt;div style='clear: both;'/&gt; <br>
&lt;!– clear for photos floats –&gt; &lt;/div&gt;


To show ads on blog posts only, modify your code like this,

<b:if cond='data:blog.pageType == &quot;item&quot;'>

YOUR ADVERTISEMENT CODE

</b:if>
 If you have any doubts,Feel free to ask here......
If You Like This Article Then Hit Like Button Bellow:)

3 comments:

Garg Ankit said...

Hey ritesh,
I am not able to implement this technique.
I want to display google ads just below the post title, but they should appear on the post page only and not homepage. Please help

Ritesh Warke said...

@ankit,
Here I have given full detailed tutorial

Conditional Tags - Targeting Specific pages In Blogger

Somnath Travels said...

ritesh forgot to put < before if please add "<" and it will work correctlyInfotakes.com

Post a Comment

New Users Register Here