Blogger Conditional Tags and Their Uses

 In this post I will discuss about "Conditional Tags on Blogger", maybe some of you don't know anything about the list of blog conditional tags. But if you are a blog template designer, or who often play in (HTML Blog Templates) of course this is not foreign to you. Here I will give a brief explanation/function related to blog conditional tags as well as a complete list of conditional tags (Insha Allah Complete).



his blogger blogger conditional tag is useful for hiding or showing widgets/ads on your blog. For example, if you want to display ads only on the main page and not on other pages, or change the appearance / design of the blog to change between the main page (homepage) and the blog post page, here you can use this conditional tag.

For those of you who are blog designers / who like to design blogs, of course, the use of conditional tags is often used, because I also like to design blogs, and was confused with the names and functions of conditional tags, therefore I made this article, if I needed my conditional tags can go directly to this article, without having to search again to google. :v

Ok, I'll just give you a list of blogger conditional tags, and previously here I will only give blogger conditional tags that are new versions and don't use the old conditional tags. So if you need the old version of the conditional tag, you can search again on google.

Main Page (Homepage)

<b:if cond='data:view.isHomepage'>
<!-- Displaying Widgets/CSS/HTML/JS/ads/etc only on the main page -->
  </b:if>

Item Page

<b:if cond='data:view.isSingleItem'>
  <!-- 
Displaying Widgets/CSS/HTML/JS/ads/Etc only on the Items page, including the time/post/title for example: the page you are currently reading.-->
  </b:if>

Index Page

<b:if cond='data:view.isMultipleItems'>
  <!-- Displaying Widgets/CSS/HTML/JS/ads/etc only on index pages, for example: main page (homepage), label page, archive page, and search query page. -->
  </b:if>

Post Pages

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

Static Pages (Pages)

<b:if cond='data:view.isPage'>
  <!-- Showing Widgets/CSS/HTML/JS/ads/Etc only on Static pages(Pages/Pages) -->
  </b:if>

Label Page

<b:if cond='data:view.isLabelSearch'>
  <!-- : https://www.miusm-tech.com/search/label/Seo-->
  </b:if>

Archive Pages (Archive)

<b:if cond='data:view.isArchive'>
  <!-- : https://www.miusm-tech.com/2021/06/miusm-story-template-blogger.html -->
  </b:if>

Search Page

<b:if cond='data:view.isSearch'>
  <!-- Showing Widgets/CSS/HTML/JS/ads/etc only on search page only -->
  </b:if>

Search and Label Search Pages

<b:if cond='data:view.isSearch and !data:view.isLabelSearch'>
  <!-- Show Widget/CSS/HTML/JS/ads/Etc only on search page including label search page -->
  </b:if>

404 Error Page (Error page 404)

<b:if cond='data:view.isError'>
  <!-- Displaying Widgets/CSS/HTML/JS/ads/Etc only on error pages or error pages -->
  </b:if>

Preview Page

<b:if cond='data:view.isPreview'>
  <!-- Show Widget/CSS/HTML/JS/ads/Etc only on preview page -->
  </b:if>

Specific Pages (Custom Pages) - Old Versions

<b:if cond='data:blog.url == &quot;URL PAGE&quot;'>
  <!-- Displaying Widgets/CSS/HTML/JS/ads/etc only on certain pages that you have customized yourself/added your own url -->
  </b:if>

Mobile Pages - Old Versions

<b:if cond='data:blog.isMobileRequest'>
  <!-- Show Widget/CSS/HTML/JS/ads/Etc only on mobile page halaman -->
  </b:if>

Those are some lists of blogger conditional tags that you can use, and for examples, see below.
here I will only display ads on static pages (pages) only.


  <b:if cond='data:view.isPage'>
  <ins class="adsbygoogle"
       style="display:block"
       data-ad-client="ca-pub-17222225xxxxxxxx"
       data-ad-slot="1234567xx"
       data-ad-format="auto"></ins>
  <script>
  (adsbygoogle = window.adsbygoogle || []).push({});
  </script>
  </b:if>

So for other pages, the ad will not appear.
You can replace the ad code with css or other code.
Ok, maybe this is where the discussion of my article ends this time. If there is anything confusing regarding my explanation above, please leave your comments below. Thank you