How to - Hide Widget Only In a Particular Page in Blogger Blog

If you don't want to show widget in a page in your blogger blog then you are came to the right place to get this blogger trick. When comes to the blogger blog, handling widgets are more important then another. If your widget is not suitable for your particular article or post page, then you must hide it. Every widget must be related to the current page and this is very important. Here I'm gonging to tell how to hide a widget in a particular page.

The below steps will help you to hide a widget only in a particular blogger 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 particular blogger page.

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

<b:widget id='HTML4' locked='false' title='Recent Posts' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.url != "URL of the 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.

Now Everything looks fine. You can hide this widget only in a particular blogger page. It wont get visible on rest of the parts. I hope this will be helpful for you.

Please leave comment if you like it!

Thanks!!!

No comments:

Post a Comment