Insert Google Adsense between blogger posts is not something so complicated to do In fact, just a small change to the XML of your template:
1) First create a new AdSense in the usual way, call it what you want to monitor it and if one channel is dedicated creative.
2) Copy your AdSense code and paste it here , this step is to transform the html code into a Google XML, this is because the code is in XML blogger templates and not HTML. This step is permitted by Google because you do not modify their code but only transform it into a 'different language.
3) Go into the control panel of your blog, click on layout and then edit HTML, then click Expand Widget Templates (Make a copy of the template in case something goes wrong).
4) If you want to put ads between post title and body search div class = 'post-body entry-content'
and paste this directly above your Adsense code in case you want to show your ads only when you see the single post code then you owe it to lock up the following lines of code:
( b: if cond = 'data: blog.pageType == "item"' )
(p )
Adsense Code
( / p )
( / b: if )
5) If you want to see ads at the bottom of the post look date: post.body / and immediately enter your code Adsense changed. If you do not want to display ads on the home but only in single post then shut your code between the lines of code written in step 4.
Save the template and view your blog!
racchiusto The code in brackets to problems with blogger html, each bracket to 'start you must replace it with <>. Sorry, but does not depend on me.
0 comments:
Post a Comment