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

Table Of Contents: How To Create Table Of Content In Pages – Show Hide Function

In table of contents, the optional callback parameter is a function to be executed after the hide() or show() method completes. Calls the function unhide, and divID is the exact...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 / Hide The Widget in a Specific Page or Particular Page

The following conditional tags marked with blue just before and after to show the widget in a specific page in Blogger. For instance, if you want: Showing the widget in...Read more !

How to earn money instantly from blogging?

Event blogging can make more money quickly. An Event Blog is a blog to target for any festival such as Hawali, Raksha Bandhan, Diwali and there are many festivals in...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.