Latest Blogger Conditional Tags ( Update ) | Droidnur 123

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

 Welcome to the Droidnur123 blog, Following are the Latest Blogger Conditional Tags that you can add to your theme to wrap certain markup like HTML and widgets.

Latest Blogger Conditional Tags ( Update ) | Droidnur 123



Main Page Conditional Tags

V 2.0  

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

V 1.0 

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

Index Page Conditional Tags
V 2.0 

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

V 1.0

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

Item Page Conditional Tags
V 2.0  
<b:if cond='data:view.isSingleItem'> … </b:if>

V 1.0 

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



Post Page Conditional Tags
V 2.0  
<b:if cond='data:view.isPost'> … </b:if>

V 1.0 

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

Static Page Conditional Tags

V 2.0  

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

V 1.0 

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


Label Page Conditional Tags

 V 2.0  

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

V 1.0 

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

Archive Page Conditional Tags
V 2.0  
<b:if cond='data:view.isArchive'> … </b:if>

V 1.0 

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


Search Page Conditional Tags
V 2.0  
<!-- Includes label search page -->
<b:if cond='data:view.isSearch'> … </b:if>

<!-- Search page only -->
<b:if cond='data:view.isSearch and !data:view.isLabelSearch'> … </b:if>

V 1.0 

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


Error Page Conditional Tags / Error 404

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


V 1.0 

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

Preview Page Conditional Tags

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

V 1.0 

<!-- There is not any -->


Mobile-only Page Conditional Tags

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

V 1.0 

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

Use of Conditional Tags

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

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

// html or widget here

</b:if>


To hide a page from certain conditional tags, put "exclamation mark" 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>


Thanks! So much from Droidnur, thank you, and best of luck.


CONCLUSION:

Thanks for reading this "Latest Blogger Conditional Tags ( Update )" post for so long. If you have an opinion, don't forget to let us know in the comments. And if the post seems helpful, don't forget to heal your friends. Thanks.






Go to Link

About the Author

Droidnur is the Founder & CEO of droidnur.eu.org & Publisher with an Entrepreneur. He is Also a Collage Student & Full Time Passionate Blogger.

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.