Tuesday, 18 March 2014
Labels:
Blogger template
Blogger template Display content on Article Page
Posted by
Unknown
at
08:43
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.
If you want to display any specific thing on Home page, use following code.
Sections
You can add different sections with unique ID attribute name on sidebar part.
READ MORE AT http://www.9lessons.info/2014/03/blogger-template-design.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 == "item"'>
// Display content on Article Page
<b:else/>
// Display content on Home Page
</b:if>
// 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 != "item"'>
// Display content on Home Page
</b:if>
// 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>
</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
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment