How To Put Ads Into Blog Article

Go to the THEMES from the blog that will add ads in the middle of the article
Then Edit HTML.

Do not forget to backup your template by downloading the template so that it is safe if something happens that you don't want when editing later.
How To Put Ads Into Blog Article

Search for the word <data: post.body /> using CRT + F, then write <data: post.body /> enter. There you will find a number of different codes. Usually the second code.

If you are wrong you may try one by one. Use CTR + Z to cancel edits in HTML or toUNDO, if you want to reverse the initial conditions before editing.

Change <data: post.body /> with the following code:

<div expr:id='&quot;post1&quot; +'/> <div class='googlepublisherads' style='margin:20px 0'> <center> <--YOUR ADS CODE HERE--> </center> </div> <div expr:id='&quot;post2&quot; +'><data:post.body/></div> <script type='text/javascript'> var obj0=document.getElementById(&quot;post1<>&quot;); var obj1=document.getElementById(&quot;post2<>&quot;); var s=obj1.innerHTML; var t=s.substr(0,s.length/2); var r=t.lastIndexOf(&quot;&lt;br&gt;&quot;); if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+4);} </script>

Number two in the sentence "var t = s. Substr (0, s.length / 2);" above if you want your ad right in the middle of your article or 1/2 of your article. 
If the location of the ad in 1/3 of the article you can change the number 2 to number 3,

 if you want the ad position to be in the 1/4 of your article then change the number 2 to number 4.

Load Comments