How to Show or hide widgets on pages on blogger

How to Show or hide widgets on preferred pages on BlogSpot/blogger



By default when you add a new widget to your blog it appears in all the static pages and posts on your blog, sometimes it is very irritating seeing them where they are not needed. With this methods or procedure below, you can hide or show them on the pages you want them to appear or show up!

Go through the same process you use in adding new widgets to your blog. And do what you see below in the code. You can also edit an already installed widget by locating it on your blogger template layout and sandwich it in between the codes in red….




•             How to Show Widgets Only On Homepage?
Your widget will only show on your home page

   <b:if cond='data:blog.url == data:blog.homepageUrl'>
    YOUR WIDGET CODE HERE
    </b:if>

•             How to Hide Widgets on Homepage ?
It would hide your widget from the home page

   <b:if cond='data:blog.pageType == "item"'>
   YOUR WIDGET CODE HERE
    </b:if>

•             How To Show Widgets Only On Static Pages?
Your widget would only be revealed on your static pages like your contact, privacy or about us.
 
 <b:if cond='data:blog.pageType == "static_page"'>
   YOUR WIDGET CODE HERE
    </b:if>

•             How To Hide Widgets On Static Pages?
Your widgets would not show on your static pages

   <b:if cond='data:blog.pageType != "static_page"'>
   YOUR WIDGET CODE HERE
    </b:if>

•             How to Show Widgets on Selected Post Only?
You can also show your widgets on post you want them to show…. Replace the POST URL with the link of your post you want the widget to show

    <b:if cond='data:blog.url == " POST URL "'>
   YOUR WIDGET CODE HERE
    </b:if>

·         Hide Widgets from Selected Post?
Hide your widgets from selected post your wouldn’t want them to appear, also replace the POST URL with your post link
   
<b:if cond='data:blog.url != " POST URL "'>
   YOUR WIDGET CODE HERE
    </b:if>

·         How to Display Widget on Homepage and Static Pages
This would show the widgets on both your homepage and on your static page

   <b:if cond='data:blog.pageType != &quot;item&quot;'>
   YOUR WIDGET CODE HERE
    </b:if>
   

·         Show Widgets on Posts and Static Pages?
You can also show widget on your posts and your static pages

   <b:if cond='data:blog.pageType != &quot;index&quot;'>
   YOUR WIDGET CODE HERE
    </b:if>


You can help us by sharing this for us...




0 default, disqus:

Post a Comment