How to Insert an AdSense Ad code Inside a Blog Post
Follow following simple steps to insert Google AdSense code into your blog.
and press the Enter some space bar button from your key board in-order to keep some space.
Now, delete the below line.
while convert your AdSense ad code to Parsed AdSense code from here
Step 1. Go to blogger.com and sign in into your account
Step 2. Now go to >>Template page and click on >>Edit HTML(before editing template download your template by clicking on back up template)
Step 2. Now go to >>Template page and click on >>Edit HTML(before editing template download your template by clicking on back up template)
Step 3. Then search 'Blog Posts' in template using (CTRL+F)
Step 4. Then expand widget template (click on ➤ Button in the same line of 'Blog Posts')
Step 5. Then search code using search box (CTRL+F).
Step 4. Then expand widget template (click on ➤ Button in the same line of 'Blog Posts')
Step 5. Then search
Note: select second search of .
Step 6. Place your cursor after the line
Step 6. Place your cursor after the line
Now, delete the below line.
<data:post.body/>Step 7. Now copy the below code and paste it in the space created in step 5. below the line of <div class='post-body entry-content'>
while convert your AdSense ad code to Parsed AdSense code from here
<!--BEGIN Code to place ad ANYWHERE inside post-->
<div expr:id='"aim1" + data:post.id'/>
<div style='clear:both; margin:10px 0'>
<!--START of AdSense code -->
PASTE PARSED ADSENSE CODE HERE!
<!--END of AdSense code -->
</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>
<!-- END OF CODE to place ad anywhere inside blog post -->
- 5 Recomended Tips to Become a Sucessfull Blogger
Thanks for this tutorial..
ReplyDeleteSanaya Free Blogger Template