How To Show or Hide Widgets in Static Pages

The following conditional tags marked with blue just before and after to hide the widget from Static Pages in Blogger. For instance, if you want:

Data View is indicating the current view of the Blog. Usually used with a conditional expression as in tag because most of the type is boolean, that’s mean the value is either ‘True’ or ‘False’.

Showing widgets only in static pages


<b:if  cond='data:blog.pageType == "static_page"'></b:if>
<!-- Here Is Your Content that you want to  show on static pages -->
</b:if>

Hiding widgets only in static pages


<b:if  cond='data:blog.pageType != "static_page"'></b:if>
<!-- Here Is Your Content that you want to  hide on static pages -->
</b:if>

Bloggers Buzz My Coaching

Related Posts

The Limit of post in a day in blogger – No BurnOut, SEO

Blogger has purposefully set the limit to 50 to prevent abuse. If you have to post 500 blog posts per day, Blogger is not the platform for you. You may...Read more !

How To Show / Hide Widget In Mobile Page In Blogger

Showing / Hiding Widget In Mobile Page In Blogger: <b:if> is the most used tag in Blogger Theming. together, and a singleton <b:elseif> and <b:else> are a Conditional tag to give...Read more !

How to show ALL posts under a label or A Particular Label ?

You can create multiple pages in a page, under one label. I’m not sure though why you would create multiple pages under one post. Publish the posts to various labels,...Read more !

Leave a Reply

Your email address will not be published. Required fields are marked *