Thursday, August 1, 2019

Hot! Latest Blogger Conditional Tags 2019

Newest Conditional Tags for Blogger with their Functions 2019. How to use Conditional Tag in blogger 2019?

Latest Conditional Tag for Blogger with their Functions 2019

Conditional Tag is one of the important functions in the template structure on Blogger. This function is used for certain adjustments, usually used to display widgets or elements in a particular place.

Conditional Tag for Blogger starts with <b:if and is followed by the desired condition. Below is the latest version of the Blogger Conditional Tag that you can use on your Blogger Template.

Universal Conditional Tags

1. Display widgets only on Homepage

<b:if cond='data:view.isHomepage'>
    <!--some code -->
</b:if>

2. Conditional Tag for Index

<b:if cond='data:view.isMultipleItems'>
    <!--some code -->
</b:if>

3. Conditional Tag Item

<b:if cond='data:view.isSingleItem'>
    <!--some code -->
</b:if>
4. Conditional tag for Post

<b:if cond='data:view.isPost'>
    <!--some code -->
</b:if>

5. Conditional Tag for Static Page

<b:if cond='data:view.isPage'>
    <!--some code -->
</b:if>

6. Conditional Tag for Label

<b:if cond='data:view.isLabelSearch'>
    <!--some code -->
</b:if>

7. Conditional Tag for Search Result Page

<b:if cond='data:view.isSearch'>
    <!--some code -->
</b:if>

8. Conditional Tag for Archive Page

<b:if cond='data:view.isArchive'>
    <!--some code -->
</b:if>
9. Conditional Tag for 404 Page (Page Not Found)

<b:if cond='data:view.isError'>
    <!--some code -->
</b:if>

10. Conditional Tag for Preview page

<b:if cond='data:view.isPreview'>
    <!--some code -->
</b:if>

NOT, AND, OR

1. NOT

This condition is used if the widget wants to be displayed other than at that place.

<b:if cond='!data:view.isPost'>
    <!--some code -->
</b:if>

2. AND

Conditions if both are correct. Add AND.

<b:if cond='!data:view.isPost AND data:view.isMultipleItems'>
    <!--some code -->
</b:if>
3. OR

The condition if one of them is correct. Add OR.

<b:if cond='data:view.isPost OR data:view.isMultipleItems'>
    <!--some code -->
</b:if>

That's some of the newest Conditional Tags for Blogger. May be useful :)