How to Place Ads in the Middle of the Article in blogger blog

How to Place Ads in the Middle of the Article in blogger blog search this
code and replace it go to dashboard > theme > edit html > ctrl+f search


<data:post.body/>

with code given below
—————————————————————————————-

<div expr:id=‘&quot;post1&quot; + data:post.id’/>
<div class=‘googlepublisherads’ style=‘margin:20px 0’>
<center>
adsens code here
</center>
</div>
<div expr:id=‘&quot;post2&quot; + data:post.id’><data:post.body/></div>
<script type=‘text/javascript’>
var obj0=document.getElementById(&quot;post1<data:post.id/>&quot;);
var obj1=document.getElementById(&quot;post2<data:post.id/>&quot;);
var s=obj1.innerHTML;
var t=s.substr(0,s.length/2);
var r=t.lastIndexOf(&quot;&lt;br&gt;&quot;);
if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+4);}
</script>







 2 total views,  2 views today

Leave a Reply

Your email address will not be published. Required fields are marked *