| Mobile| RSS

Show Adsense After and Before Each Post

| posted in , |



You might have seen in many blogs that Adsense ads are being displayed at the start and end of each post.The reason they are put there are that it ensures maximum probability of click from the visitors.Below are the step by step instructions of doing the same
Before starting please backup your template so that if anything goes wrong you can revert back to your previous template.

1.Get the Adsense code and make it template friendly from here.

2.Sign in to your blogger account and goto layout>Edit html
click on Expand widgets.

3.Find the below code in your template by pressing Ctrl+f and then pasting the code
<data:post.body/>

4. Now add the Adsense code before and after the above code.

<!-- Your AdSense code --!>

<data:post.body/>

<!-- Your AdSense code --!>

5.Save the template

If you want the ads to be visible only in post or you are using Read only hack then
enclose your adsense codes in below codes

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

<!--adsense codes--!>

</b:if>


If you have any doubt or suggestion please do leave a comment.