Saturday, March 22, 2014

Page show/hide widget

Show Blogger Gadgets/Widgets in Specific Posts or Pages By: Rajarshi Mandal Today I will tell you how to show different Blogger gadgets or widgets on different or specific posts or pages. Previously we learned about conditional tags and how to use it. In this tutorial we need these tags to hide the gadgets. So first go to Blogger’s Layout tab and add a “HTML/ JavaScript” gadget. I prefer it because it will be easy for everyone to understand. Give it a unique tile so that it does not match with any of the titles of other widgets added (if any). Now got to Template tab, click “Edit HTML” and check “Expand Widget Templates”. Now press “Ctrl+F” on your keyboard to open the browser’s search bar and search for the “unique” title that you have given to your gadget. Let’s say I have given the title for my widget as “My Widget”. After searching you will find the below snippets:

It's the widget or gadget that you have added from Layout tab. All is left is to add conditional tags just below and above to hide the widget form specific pages or posts in Blogger. Let us see some examples: Show Blogger Widget/Gadget in Post Pages only If you want to hide any widget or gadget from showing it on homepage or other page and to show it on post pages then you have to add the conditional tags as shown below:

Show Blogger Widget in Homepage and Other Pages (except Post Pages)

Show Widget/ Gadget on a Particular Post

Conclusion Above are some examples for some of the pages. If you have followed to how to use conditional tags in Blogger, then you can hide particular widgets and gadgets from appearing on particular pages you want. One of it can be found on my explore page.

No comments:

Post a Comment