Search This Blog

add ADSENSE to blogger post by modifying the template


  1. Login to your adsense account, create the AD unit and copy the code
  2. Convert the code into safe HTML code (paste the code below and click convert):
  3. Login to blogger, select the blog you want to edit, select "Template", then click the "Edit HTML" button:
  4. Click "Proceed":

  5. Tick "Expand Widget Templates":
  6. Ctrl + F (or Command + F on Mac OS X) to search for
    <data:post.body/>
    
  7. Right above that line, paste below code:
    <b:if cond="data:blog.pageType == &quot;item&quot;">
    <div style='float: left; padding: 0px 8px 8px 0px;'>
    
     CONVERTED ADSENSE CODE FROM STEP 2
    
    </div>
    </b:if>
    <data:post.body/>
    
  8. Save the template.

SEE ALSO:

No comments:

Post a Comment