How to - Hide Widgets from Static Pages in Blogger Blog

Blogger blog is wonderful content management tools in the internet world. In blogger blog two things are more important one is post pages and another one is widgets. Here we going to learn about how to hide a widget in a static page. Some time you don't want to show widgets on some pages or it wont be related to those pages. For that situation this blogger trick will help you to find the right way to hide widgets in static pages.

The below steps will help you to hide a widget only in a static page:

Step 1: Log in to Blogger Blog

Step 2: Open template and click Edit Template.

Step 3: Search for widget id that you want to hide only in a static page.

Step 4: Here assume your id is HTML2 and replace the below code with the existing one and place the static page URL in the highlighted quotes.(that you want to hide)

<b:widget id='HTML2' locked='false' title='Recent Posts' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType != "static_page"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>

Step 5: Save your template and refresh your website.

Yes, now you wont see this widget on specific static page. Now Everything looks fine. I hope this tutorial is helpful for you.

Please leave comment if you like it!

Thanks!!!

No comments:

Post a Comment