Tuesday, March 28, 2017

Show Adsense Ads Anywhere in Your Blog Post in Just Two Steps!

Loading...
Show Adsense Ads Anywhere in Your Blog Post in Just 4 Steps!
It is very easy to show your adsense ad in your blog post and even if you are not pro html, java script scientist, with these two steps you will be more than surprised how great you would do. Blogger as an excellent CMS by default doesn't offer a solution to breaking a post in the middle and inserting an ad code, so blogging experts found the way and here is how.

Show Adsense Ads Anywhere in Your Blog Post in Blogger

1. Go to Your Blogger Theme, Edit and Find <data:post.body/>.
 There are several places with the same line and you will need the second one.

2. Now replace <data:post.body/>  with this code:

<div expr:id='"aim1" + data:post.id'></div>

<div style="clear:both; margin:10px 0">
    <!-- 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>
In the line Your Adsense code you should put the one you selected but make sure before you insert the code to parse it, or else it won't work.

Use Adsense Code Parser on This Link >> HelpLogger<<

Save the Theme and You are All Done.

Blogger by default will show your Adsense Ad below your post title, and to put anywhere in your blog post just edit html post body when writing new post and insert this special element <!-- adsense -->

In this post Adsense element is inserted after the second step.

Happy Blogging 😊

Also Read: Become Publisher of Yahoo Bing Media.net Network

If you managed to implement these steps into your Blogger tell me how it went?


Author:

Social Media News,Bizz,Life and Entertainment.

0 comments: