Understanding Latest Version of Blogger Conditional Tags

All Blogger Globally Conditional Tags - NEW Version - Every time we see the latest developments in tech and these developments have brought a revolution in web development. The developers are continuously improving the programming languages and one of the biggest change that they have made in; are blogger conditional tags. Blogger conditional tags perform the many functions in theme creation like we can use these tags to wrap the certain code of the templates.

Blogger Conditional Tags

Read Also: How to Add Multiple Column to Blogger Post

As we know, BlogSpot conditional tags play a major role in template development. These tags are not only responsible for theme creation but they have a very close relation to Blogger search engine optimization (SEO). Even we cannot expect 0% of SEO and template development without conditional tags.

Pay Attention: How to Add Social Media Widget to Blogger Sidebar

So, today i decided why not to share the new version of conditional tags with you which Developers have made in recent times. Lets get started!


Homepage

Old Version

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

New Version

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

Index Page

Old Version

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

New Version

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

Item Page

Old Version

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

New Version

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

Post Pages

Old Version

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

New Version

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

Static Page

Old Version

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

New Version

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

Label Page

Old Version

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

New Version

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

Archive Page

Old Version

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

New Version

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

Search Page

Old Version

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

New Version

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

Error Page

Old Version

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

New Version

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

The conditional tag begins with <b:if> and the ends with </b:if> and they can be used to show or hide the specific widgets on template.

Comments

  1. Thank for this information It helps me to update my conditional tags.
    Do you also know what the new version is for:

    So if the page is NOT a static page

    thank you

    ReplyDelete

Post a Comment

Popular posts from this blog

List of Top 11 Social Bookmarking Sites for 2018

How to Add Schema.org Markup to BlogSpot Blogs

12 Free Premium Blogger Templates for 2017