Tuesday 18 March 2014

Blogger template Display content on Article Page

Go to your blog left menu open Template -> Edit HTML

IF ELSE Condition
If you notice I am displaying a top banner(Wall Script) advertisement on Article Pages.  You want to display specific items on Article Page, use the following condition.

<b:if cond='data:blog.pageType == &quot;item&quot;'>
// Display content on Article Page
<b:else/>
// Display content on Home Page
</b:if>

If you want to display any specific thing on Home page, use following code.
<b:if cond='data:blog.pageType != &quot;item&quot;'>
// Display content on Home Page
</b:if>

Sections
You can add different sections with unique ID attribute name on sidebar part.
<b:section id='RecentPosts'>

</b:section>

<b:section id='MostPopularPosts'>

</b:section>

<b:section id='BuySellAds'>

</b:section>


READ MORE AT  http://www.9lessons.info/2014/03/blogger-template-design.html

No comments :

Post a Comment