Hottest: Get 2K Likes In 1 Day On Facebook Trending: Hide/Show Blogger Widgets | Removing Credits In Template


Contact Us for
A Confidential Discussion

Name E-mail * Message *

X

How to Show or Hide Widget on certain Pages on Blogger

how to show or hide widget in blogger blogs, how to hide widgets in blogger blogs
Show/Hide Widgets in Blog
Hello friends.. finally after two weeks i am back with a great blogger trick in which i will tell you about the ways by which you can show or hide blogger widgets from specific pages like static pages, particular post, archive pages or a certain page. By default blogger shows all the widgets on all page but by using this code you can configure that widget according to you.Today it became a major topic that how we can hide widgets from specific pages in blogger . I also got this problem when i am designing the html editor for my blog it also takes a large space to fit around that is why i need to remove or hide the widgets from that specific page. This way one day i got an idea to use this conditional attribute which is now i am going to share with you. So friends now don't take tension i am here to solve your problem. In this tutorial I will tell you about a simple trick for the blogger widgets. In this tutorial/trick we will discuss about how you can show or hide widgets from a certain pages. One of my blog reader asked me this question that ‘I want to hide widgets from a specific page’ in reply of that comment I am posting this tutorial for all blogger bogs and other platform. In this tutorial we will highlight some qualities of codes or conditional tags that are used to show or hide an element form a specific page. In this tutorial we will focus on seven conditional tags to show or hide widgets in static, archive or certain pages. So let’s begin-

How To Show or Hide A Widget/Gadget On a certain Page of Blogger?

Now Follow these steps below-

  • Go to Blogger Dashboard > Layout > Add a Gadget > Html/java Script. 
  • Go to Template and Click on Edit HTML
  • Find the name of the widget by using CTRL+F.  Let’s take a widget that name is ( Recent Posts ). After searching this name. You find a similar code like this.
 <b:widget id='HTML5' locked='false' title='Recent Posts' type='HTML'>
<b:includable id='main'>
<!-- 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:includable>
</b:widget>
  • After you find widget’s code add the following conditional tags marked with orange just below and above to hide the widget from specific pages or posts in Blogger. 

To show the widget only in Homepage 

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

 To show Blogger widget only in post pages

 <b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "item"'><!-- 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>
 

To show the widget in a specific page   

 <b:widget id='HTML1' 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>
 
Note: Replace the URL of the page with your website link .
 

To hide a widget only in a particular page   


 <b:widget id='HTML1' 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>

To show widgets only in static pages   


<b:widget id='HTML1' 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>
 

To hide widgets in Static Pages   


 <b:widget id='HTML1' 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>
 

To show widgets only in Archive Pages   

 <b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "archive"'><!-- 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>
  • After adding any of these conditional tags in your desired widget, Save your Template and View your Blog.now that widget will show/hided according to you.
If you found this article helpful then please share our post and add your comments also.

9 comments

Click here for comments
Suhasin Jord
admin
January 1, 2015 at 12:31 AM ×

Hello admin , can you please tell me how to remove credits link from my template.
i am waiting for it , Reply Soon.

Reply
avatar
Isita Iyyer
admin
January 1, 2015 at 12:51 AM ×

I want to remove attribution widget and credits link how can i????

Reply
avatar
Anonymous
admin
January 1, 2015 at 12:56 AM ×

i also got this problem i want to remove credits attribution from dapinder template.

Reply
avatar
Harshit Gaur
admin
May 10, 2015 at 10:08 AM ×

i had posted this problem and fixede it
check it here : Remove Credits in Templates

Reply
avatar
March 25, 2020 at 10:16 PM ×

Have you heard about programmed ATM card? email: (williamshackers@hotmail.com) or WhatsApp +27730051607 for enquiring on how to get the ATM programmed card.
We have special cash loaded programmed ATM card of $5000, $10000, $15000, $20000 and any amount your choice you need for you to buy your dream car, house and to start up your own business. Our ATM card can be used to withdraw cash at any ATM or swipe, stores and POS. Our card has daily withdrawal limit depending card balance you order. Contact us via Email if you need a card email: (williamshackers@hotmail.com) or WhatsApp +27730051607.

Reply
avatar
May 5, 2020 at 2:19 PM ×

I Want to use this medium in appreciating cyber golden hacker , after being ripped off my money,he helped me find my cheating lover he helped me hack her WHATSAPP, GMAIL and kik and i got to know that he was cheating on me, in less than 24 hours he helped me out with everything, cybergoldenhacker is trust worthy and affordable contact him on: cybergoldenhacker at gmail dot com

Reply
avatar
May 5, 2020 at 2:21 PM ×

I Want to use this medium in appreciating cyber golden hacker , after being ripped off my money,he helped me find my cheating lover he helped me hack her WHATSAPP, GMAIL and kik and i got to know that he was cheating on me, in less than 24 hours he helped me out with everything, cybergoldenhacker is trust worthy and affordable contact him on: cybergoldenhacker at gmail dot com

Reply
avatar
September 1, 2020 at 5:20 AM ×

If you are in need of financial Help, don't hesitate to place order for deserve Programmed card that can withdraw any amount limit you want. Deserve Card are very transparent and easy to deal with. You can Purchase Deserve card that can withdraw up to $50,000 to $100,000 limit without being detected because of the programming of the card.  I'm extremely grateful to them for being honest with their words and delivering the card to me. This is the third day of receiving the card and i have withdraw $9,500 from the Deserve Programmed Card. I tried purchasing the card previously from someone else, but it never arrived until i tried skylink technology for those in need of more money, you can also contact them. you can place order for the card Via whatsapp/telegram +1(213)785-1553  or their E-mail: skylinktechnes@yahoo.com 

Reply
avatar
September 1, 2020 at 7:35 AM ×

Do you need to increase your credit score?
Do you intend to upgrade your school grade?
Do you want to hack your cheating spouse Email, whatsapp, Facebook, instagram or any social network?
Do you need any information concerning any database.
Do you need to retrieve deleted files?
Do you need to clear your criminal records or DMV?
Do you want to remove any site or link from any blog?
you should contact this hacker, he is reliable and good at the hack jobs..
contact : cybergoldenhacker at gmail dot com

Reply
avatar