4/2/09

Methods of placing adsense in a template

Here are some suggestions for where you might like to put the Adsense unit:
At the top of the post body: Place it on the line after <data:post.body/> (or <p><data:post.body/></p>).
Before the post title: Place it on the line before <b:includable id=�post� var=�post�>
At the top of the sidebar: Place it on the line after <b:section class=�sidebar� id=�sidebar� preferred=�yes�>
Assess details at http://www.scratch99.com/2009/01/make-money-online-smart-pricing-on-blogger/


How to Add Adsense Ads below post title on blogger :

First check expand widgets template , The search for <div class='post-header-line-1'/> then add google adsense ad code immediately below that line .

How to show Google Adsense Ads only in post pages :

it's very simple , just add this code

<b:if cond='data:blog.pageType == &quot;item&quot;'>

put adsense ad code here

</b:if>


Do you want to show the related Posts widget in blogger :

Javascript needed for related posts widget is already added in the template itself , you just need to paste the following code in place you need the widget to appear ,

<script type='text/javascript'>
removeRelatedDuplicates();
printRelatedLabels();
</script>


If you want to add related posts widget below the post content in blogger , then in layout section check expand widgets . Search for <p><data:post.body/></p> , add the code below this line.

One can read further about How to Add Adsense Ads below post title on blogger here.
Share This

No comments:

Contact Us

So you think we’re the right folks for the job? Please get in touch with us, we promise we won't bite!



Designed By Seo Blogger Templates