Put Adsense ads within the old and new blogger automatically
Put Adsense ads within blogger topics
Old and new automatically
There is no doubt that many of the templates are ready places to put the codes of ads appear automatically in the articles .. But most of us probably does not have this feature in the template so many of us want to know how to put ads Adsense within the themes of Blogger old and new automatically without having to put code Moyet inside each new post and modify all the old topics to put ads adsense code inside the old articles .. Imagine how much will take you from the time of this procedure, but with this way mentioned in the video above and the following code can, God willing, add ads Adsense in all articles blog blogger will Tallah After you paste this code one time only the appearance of Adsense ads within all topics in seconds blog blogger and without any interference from you in just 5 minutes stuck in which this code is now just once without having to paste every time you create a new post
1) We go to (Edit Html) for your template layout as pictured.
2) We search for the following code:
<data:post.body/>
Then we delete it and replace it with the following code:
<div id='adsense-target'>
<data:post.body/>
<div div='adsense-content' style='display:block;text-align: center'>
</div>
</div>
3) Then we put the following code above the code mentioned in the previous step:
<!-- Advertising within topics -->
<b:if cond='data:blog.pageType == "item"'>
<div id='adsense-content2' style='display:block;text-align: center;'>
Replace this text with Adsense ads code
</div>
</b:if>
4) We also put the following code below the code mentioned in
step (2):
<script type='text/javascript'>
function insertAfter2(addition2,target2) {
var parent = target.parentNode;
if (parent.lastChild == target) {
parent.appendChild(addition);
} else {
parent.insertBefore(additionn,targett.nextSibling);
}
}
var adscont = document.getElementById("adsense-content2");
var target = document.getElementById("adsense-target");
var linebreak = target.getElementsByTagName("br");
if (linebreak.length > 0){
insertAfter(adscont,linebreak[4]);
}
</script>
And Also you Can Watch
Comments: 0
Post a Comment