How to Place Adsense in Middle of Blogger Posts?
- Go to Blogger > Template > Edit HTML.
- Press Ctrl+F and Search for the Following line:
<data:post.body/>
- Now, Replace the Above code with the Following code.
<div expr:id='"aim1" + data:post.id'/>
<div style='float:right;border:1px solid #aaa;background: #f5f5f5 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgi0XHaeES9H86vTe1n3PalPh65ttr8QGwm0VujOAti1HOeq2JUyPXB8858ITIP1Utr8zQ9VYVszKsWYCGVvRO9qEGF1hL8QDyyOuyKRIGa6OS5B1R8OcPR1eEejZY7K-9GS2UHmgPeyjb/s0/bg-pattern.png) repeat top left;padding:10px;clear:both; margin:10px 0;border-radius:3px;box-shadow:inset 0 0 3px 2px #ccc'>
Paste Parsed Adsense Code Here
</div>
<div expr:id='"aim2" + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>var obj0=document.getElementById("aim1<data:post.id/>");var obj1=document.getElementById("aim2<data:post.id/>");var s=obj1.innerHTML;var t=s.substr(0,s.length/2);var r=t.lastIndexOf("");if(r>0){obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+1)}</script>
- Replace the Paste Parsed Adsense Code Here with the Parsed Adsense code. You may use our Adsense Parser to get Parsed Adsense code.
- Now, All done. Hit on Save Template and have a Look at your Blog post.
Queries?
Are you still have any Doubts? Drop your Comments below.