Are you looking for an article on How To insert Ads between all posts? By displaying Ads between all posts you can earn more than you are earning now. If you will show Ads in every post then more people will see your Ads. So if you want to know how to display Ads between all posts in Blogger then this post is especially for you. Because in this post I am gonna teach about displaying Ads after the first paragraph. So let's start.
How To Display Adsense Ads Between All Posts After The First Paragraph



Display Adsense Ads Between All post In Blogger

  1. Go to the Blogger.com and log in your account.
  2. Select your blog where you want to display AdSense Ads between all post.
  3. From your blog dashboard click on the template tab.
  4. From the next page click on Edit HTML button.
  5. Now you will see your template code click anywhere on the code and search <data:post.body/>.
  6. After finding the code just wrap it with <div id='adsense-target'>.
Or just replace <data:post.body/> with <div id='adsense-target'><data:post.body/></div>

Now copy your Adsense ad unit and convert it by using our Adsense code converter. After converting Adsense code copy the following code and replace the converted Ad unit code with ad unit here.

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='adsense-content' style="display:block;text-align: center">ADSENSE UNIT HERE</div></b:if>
Then paste this above code just before  <div id='adsense-target'><data:post.body/></div> that you have edit in the first step. After that copy the following code and paste it right after the  <div id='adsense-target'><data:post.body/></div>

<script type='text/javascript'>
function insertAfter(addition,target) {
var parent = target.parentNode;
if (parent.lastChild == target) {
parent.appendChild(addition);
} else {
parent.insertBefore(addition,target.nextSibling);
}
}
var adscont = document.getElementById(&quot;adsense-content&quot;);
var target = document.getElementById(&quot;adsense-target&quot;);
var linebreak = target.getElementsByTagName(&quot;br&quot;);
if (linebreak.length &gt; 0){
insertAfter(adscont,linebreak[0]);
}
</script>

That's it now visit any post of your blog you will see the ad displaying after the first paragraph. It means you have successfully added the Adsense code between all posts in Blogger.

Thanks for reading my this post and keep visiting for more useful posts. If you have any question about this post feel free to ask me by dropping your comment below.

2 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete