Knowing logical Conditional Tags in Blogger Template

Table of Contents
There are conditional tag in xml Doc template blogger uses logical for value that we target in specific page url that used for developer custom web design or who make customizing their templates is important to know what content is for, like for archieves, homepage, page statics, disable blogger widgets in mobile and other. You can insert in blogger dasboard and use blogger template editor for using conditional tags below.
Knowing logical Conditional Tags in Blogger Template

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"'>
Put here
</b:if>
You can use conditional for mobile request for mobile blog layout
<b:if cond='data:blog.isMobileRequest == &quot;true&quot'>
Your css or javascript
</b:if>
Java script for desktop only
<b:if cond='data:blog.isMobileRequest == &quot;false&quot;'>
</b:if>
If i'am wrong, please correcting me.

Post a Comment