Blogger Mein Kaise Kisi Widget/Gadget Ko Show/Hide Kare?

Hello friends, Kaisa hai ap. I think fine. Aj mai apke liye ek anokha blogger trick lekar aya hoon. Jab vi hum kisi widget/gadget ko blogger blog mein add karte hai to wo widget blog ki har page mein show hoti hai. Blogger ki default settings aisa hi ha. Lekin kya ap jante hai? agar ap apna Contact us aur Privacy Policy page mein vi adsense ads show karaenge to wo apki account disable kar sakta hai. Is issue ko fix karne ke liye aur blog ko aur vi customizable banane ke liye aj mai lekar aya hoon ye blogger gadget/widget hide/unhide trick. Blogger widget/gadget ko blog ki kisi particular posts, static page, homepage archive page mein hide/unhide karne ke liye ap conditional tags use kar sakte hai.

hide-show-widgets-gadgets-in-home-post-static-archive-pages-in-blogger

Blogger Mein Kaise Widget/Gadget Ko Hide/Show Kare?


Niche diye gaye steps ko follow kare.

Step 1. Pahle apna Blogger account mein log in karke Dashboard > Layout mein jae aur ap jo widget ko hide/show karana chahte hai uski ek title de. Isse apko template code mein se widget ko search karne mein asani hogi. Apko ek unique title dena hai jisse kisi aur widget ki title nehi milega.

Step 2. Abh Template > Edit HTML mein jae.

Step 3. Abh codes mein kahivi click kare aur keyboard se CTRL+F key eksath press karke search bar enable kare.

Step 4. Uske baad search bar mein apna dia hua title type karke enter press kare.

Isse apko us specific widget ki code mil jaega. Maine "Recent Post" widget search kia hai. Aur code niche jaisa hoga.

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

Ye code us widget/gadget ko present karta hai jise hum show/hide karana chahte hai.

Step 5. Abh niche diya hua conditional tags ko is widget ki tag ke sath jurke ap apni hisab se kisi widget/gadget ko alag alag page se hide/unhide kar sakte hai. Conditional tags green color mein hai.

Widget Sirf Homepage Mein Show Kare


<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>

Widget Sirf Post Pages Mein Show Kare


<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>

Widget Ko Post Page Se Hide Kare


<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>
 Recommended Posts:
Successful Blogger Banne Ka 5 Secrets
WordPress Style Facebook Popup Likebox For Blogger
Adsense 403 Forbidden Error Kaise Fix Kare?
Floating Social Media Sharing Buttons For Blogger
Blogger Blog Mein Text Selection Highlighting Color Kaise Change Kare?

Widget Ko Sirf Ek Specific Page Mein Show Kare


<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 : URL of the page ko ap jis page mein widget ko show karana chahte hai us page ki URL se replace kare.

Widget Ko Sirf Ek Particular Page Mein Hide Kare


<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 : URL of the page ko ap jis page mein widget ko show karana chahte hai us page ki URL se replace kare.

Widget Ko Sirf Static Page Mein Show Kare


<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> 

Widget Ko Static Page Se Hide Kare


<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>

Widget Ko Sirf Archive Page Mein Show Kare


<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>

Step 6. Man pasand conditional tag ko apna widget tag ke sath jorne ke bad Save Template button press karke apna blog visit kare.

Read Also : Cover Image Sizes For All Social Media In Hindi

Abh ap kisi blogger widget/gadget ko blog ki kisi page mein show/hide kara paenge. Thanks.

SHARE THIS

Author:

I'm an 18 years aged Passionate Blogger from West Bengal, India. I just love to write articles and share them with people. The day was 28th September 2015, when my dream of having a website comes true and I made this website to help you and peoples like you!

Previous Post
Next Post
9/29/2016 3:07 am

Bhot hi aaccha jankari share kiya hai aapne bro nice a article

Reply
avatar
9/30/2016 4:10 am

Thanks Nareh, for your inspiring comment. Keep visiting HelperBus.

Reply
avatar