How to Place Adsense Ads in Between (Middle) of Post in Blogger ?
How to Place Ads Middle of Blogger Post ?
www.newtechnicalbabu.in/ ME aap sabhi ka swagat hai . Eis Aricle me hum discuss karenge:
Apne blog post ke andar Adsence ka code kaise place kare
mai, Pahale hi bata chuka hu ki eis Post mai batunga ki aap kaise Blogger blog ke post ke middle me adsense ki add laga sakte hai .
Step 2 :
In the above , Place your Ad Code here , where you you place your Adsense Ads code .
If you face any problem, comment me on the comment box.
www.newtechnicalbabu.in/ ME aap sabhi ka swagat hai . Eis Aricle me hum discuss karenge:
Apne blog post ke andar Adsence ka code kaise place kare
- How to Place Ads Between Blogger post ?
- How to place Ads middle of the blooger post ?
- How to Place Adsense Ads in Betgeen (Middle) of Post in Blogger
mai, Pahale hi bata chuka hu ki eis Post mai batunga ki aap kaise Blogger blog ke post ke middle me adsense ki add laga sakte hai .
Wordpress me Adsense ka Ads lagana Easy hai Blogspot me Adsense ka Ads place karna thoda muskil hai . Blogspot ke blog me Ads ko har eak post me Adsense ad Code ko Manually lagana padta hai , jise Ad Placement karna tdoda muskil hota hai .
Mai yaha par aapko woh method batunga ki har ek post me jakar aapko Adsense ka code place karna nahi padega .
Step 1 : Go to Blogger.com and login in blogger dashboard.
Now, Go to Theme >> Edit HTML .
Step 2 :
Now, Search below template code :
<DATA:POST.BODY/>
You find a code like this, Select the second code .
Step 3 :
Now , Replace the above code with below given the code :
<div id='jobmiddlenew'>
<data:post.body/> </div>
<b:if cond='data:blog.pageType == "item"'>
<style> #addcodemiddle{display: none;} </style>
<div id='addcodemiddle'> Place Your Ad Code Here </div>
<script type='text/javascript'> var str1=document.getElementById("jobmiddlenew").innerHTML; var str2=str1.length; var str3=str2/2; var substr = str1.substring(str3, str2); var n = substr.search("<br>"); if(n<0) { n = substr.indexOf('.'); if(n<0) { n=0; } var firsthalf = str1.substring(0, str3+n+1); var secondhalf = str1.substring(str3+n+1, str2); } else { var firsthalf = str1.substring(0, str3+n+4); var secondhalf = str1.substring(str3+n+4, str2); } var addcode="<center>"+document.getElementById("addcodemiddle").innerHTML+"</center><br/>"; var newbody=firsthalf+addcode+secondhalf; var strnew=document.getElementsByClassName("post-body entry-content"); strnew[0].innerHTML=newbody; document.getElementById("addcodemiddle").innerHTML=""; </script>
</b:if>
In the above , Place your Ad Code here , where you you place your Adsense Ads code .
If you face any problem, comment me on the comment box.
Post a Comment