Latest and All Blogger Conditional Tags in 2021

blogger conditional tags,latest conditional tags for blogger,

If you are also interested in blogger widgets,element,etc In this case, blogger conditional tag is very useful to make visible or hide of any widget on a specific pages.So,today Blogism brings new conditional tags for Blogger for you.

Blogger conditional tags
conditional tags for Blogger


The following are the Latest Blogger Conditional Tags that you can add to your theme to wrap certain markups such as HTML and widgets.


Main Page Conditional Tags


New version

<b:if cond='data:view.isHomepage'> … </b:if>


Old version

<b:if cond='data:blog.url == data:blog.homepageUrl'> … </b:if>

Index Page Conditional Tags


New version

<b:if cond='data:view.isMultipleItems'> … </b:if>


Old version

<b:if cond='data:blog.pageType == "index"'> … </b:if>

Item Page Conditional Tags


New version

<b:if cond='data:view.isSingleItem'> … </b:if>


Old version

<b:if cond='data:blog.pageType in ["item", "static_page"]'> … </b:if>

Page Post Conditional Tags


New version

<b:if cond='data:view.isPost'> … </b:if>


Old version

<b:if cond='data:blog.pageType == "item"'> … </b:if>

Static Page Conditional Tags


New version

<b:if cond='data:view.isPage'> … </b:if>


Old version

<b:if cond='data:blog.pageType == "static_page"'> … </b:if>

Label Page Conditional Tags


New version

<b:if cond='data:view.isLabelSearch'> … </b:if>


Old version

<b:if cond='data:blog.searchLabel'> … </b:if>

Archive Page Conditional Tags


New version

<b:if cond='data:view.isArchive'> … </b:if>


Old version

<b:if cond='data:blog.pageType == "archive"'> … </b:if>

Search Page Conditional Tags


New version

<!-- Includes a label search page -->
<b:if cond='data:view.isSearch'></b:if>

<!-- Only a search page -->
<b:if cond='data:view.isSearch and !data:view.isLabelSearch'></b:if>


Old version

<b:if cond='data:blog.searchQuery'> … </b:if>

404 Error / Error Page Conditional Tag


New version

<b:if cond='data:view.isError'> … </b:if>


Old version

<b:if cond='data:blog.pageType == "error_page"'> … </b:if>

Preview Page Conditional Tags


New version

<b:if cond='data:view.isPreview'> … </b:if>


Old version

<!-- There is no -->

Mobile Special Page Conditional Tags


New version

<b:if cond='data:view.isMobile'> … </b:if>


Old version

<b:if cond='data:blog.isMobileRequest == &quot;true&quot;'> … </b:if>

Use of Conditional Tags


To use the latest version of the conditional tag above, you can use it in HTML or widgets on the blogger theme. Examples like this:

<b:if cond='data:view.isMobile'>

// html or widget here

</b:if>


To hide a page from certain conditional tags, put an "exclamation point" or "not" before data:view

<b:if cond='!data:view.isMobile'>

// html or widget here

</b:if>


Or

<b:if cond='not data:view.isMobile'>

// html or widget here

</b:if>


That's all from Blogism, thank you and sincerely.