How Show Adsense In Middle Of Blogger Posts ?
You could see in others blog keeping their ads in middle of blogger posts and you may feel that How To Show Adsense Adds In Between Of Blogger Posts,yaa its right,you can now show adsense adds between the blogger posts.Just what you have to do is to select at which posrion of the middle of the post you want adsense adds to be shown up and adsense add will be shown up itself.No need to add the adsense codes manually in between the posts.You can also add adsense codes at the start of blogger post and end of blogger post,for this trick you can continue to this post.
Now how to add adsense adds in between the blogger posts.
Got To Blogger Layout > Edit Html > Expand Widgets > Press Ctrl + F and seach For Below code
<data:post.body/>
After getting this code replace it with below codes.
<div expr:id='"aim1" + data:post.id'></div>
<!-- Your 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 r=s.search(/\x3C!-- adsense --\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>
And save your template.
Now whenever you write a new blogger post and when you reach in middle of the post where you want to show up adsense adds just add below code there
<!-- adsense -->
Now when you will publish your post you will see adsense adds in between posts at the place where you placed the above line.
0 comments »
Leave your response!