Knowing logical Conditional Tags in Blogger Template
Table of Contents
There are conditional tags we can use in Xml blogger :
In general tag we can use if value or content is true condition
<b:if cond='Place conditional here'>
</b:if>
We can use for multiple conditions using if logical argument if there are in false arguement :
<b:if cond='Put condition statement here'>
Put here
<b:else/>
</b:if></b:if>
Conditional tag for index page, index page including for homepage, label, Archieves.
<b:if cond='data:blog.pageType == "index"'>
Put here
</b:if>
Conditional for Post Page
<b:if cond='data:blog.url == data:post.url'>
Put here
</b:if>
Conditional for Static Pages
<b:if cond='data:blog.pageType == "static_page"'>
Put here
</b:if>
Conditional for pages label and blogger widgets
<b:if cond='data:blog.searchLabel'>
Put here
</b:if>
Conditional for Search Page
<b:if cond='data:blog.searchQuery'>
Put here
</b:if>
Conditional for Archive Page
<b:if cond='data:blog.pageType == "archive"'>
Put here
</b:if>
Conditional for First Post
<b:if cond='data:post.isFirstPost'>
Put here
</b:if>
For conditional definetely url
<b:if cond='data:blog.url == "URL"'>You can use conditional for mobile request for mobile blog layout
Put here
</b:if>
<b:if cond='data:blog.isMobileRequest == "true"'>
Your css or javascript
</b:if>
Java script for desktop only
<b:if cond='data:blog.isMobileRequest == "false"'>
</b:if>
If i'am wrong, please correcting me.
Post a Comment