Adding ads between posts in Widgetized Blogger.com

0 comments

Posted on 5th August 2007 by AdrianC in eHowTo

The new widgetized blogger.com has a lot of features. Adding mini applications, music songs and arranging them has become easier and more user friendly. Crispy! No more manhandling the full HTML code and messing up the whole blog. Plus the Template >>>Page Elements allows you to place it exactly where you want and how you want it. Adding a widget is simple too.

However it can be frustrating on how to add stuffs to appear between your blogposts. This is because while you can add HTML/Javascript columns in your sidebar, header or footer in the Page Elements, there is no way you can add anything to appear between blog posts from there.

Therefore, head on to Template>>>Edit HTML

then look for these code. remember to check the ‘expand widget templates’ you can CTRL-F to look for them.

<data:adStart/>
<b:loop values=’data:posts’ var=’post’>
<b:if cond=’data:post.dateHeader’>
<h2 class=’date-header’><data:post.dateHeader/></h2>
</b:if>
<b:include data=’post’ name=’post’/>
<b:if cond=’data:blog.pageType == “item”‘>
<b:include data=’post’ name=’comments’/>
</b:if>

COPY PASTE YOUR AD CODES HERE

</b:loop>
<data:adEnd/>
</div>

The code for your ads should be between </b:if> and </b:loop>

Your ad should now appear between every posts. :)

untitled.JPG

While we are still hot on topic, why not adding ads to your blog? Ads such as Nuffnang and Advertlets will generate some side income for your blog. :) Bloggers deserves pocket money!

No comments yet.

Leave a comment