AND/OR/NOT Condition How to Use on Blogger, Conditional, Page Types, Tags, Guide, Codes, Ultimate Blogger Guide - 10- Bc Blog Teacher

Breaking

BANNER 728X90

30 Ekim 2020 Cuma

AND/OR/NOT Condition How to Use on Blogger, Conditional, Page Types, Tags, Guide, Codes, Ultimate Blogger Guide

Blogger, Conditional, Page Types, Tags, Guide, Codes, Ultimate Blogger Guide 



  AND/OR/NOT


1.AND Blogger Condition Code


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

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

    <!--search_page AND index_page-->

  </b:if>

</b:if>


2.OR Blogger Condition Code


<b:if cond='data:blog.url == data:blog.canonicalHomepageUrl + "p/foo.html"'> 

  <!-- static_site foo OR static_site bar -->

      <b:else/>

<b:if cond='data:blog.url == data:blog.canonicalHomepageUrl + "p/bar.htm"'> 

  <!-- static_site foo OR static_site bar -->

   </b:if>

</b:if>


3.NOT Blogger Condition Code


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

  <!-- all pages except item pages -->

</b:if>


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

  <!-- all pages but NOT homepage -->

</b:if>



Hiç yorum yok:

Yorum Gönder