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

Post a Comment

0 Comments