In this tricky tutorial I'm going to tell that How To Show or Hide Blogger Blog Widgets On Specific Pages? or you can say How to Control Blogger's Official Widget? There are a lot of reasons you may want to only display a gadget /widget on either post page or home page because it could be anything. Suppose you created a featured slider gadget and but you wants to display it only on the blog's homepage. Follow given below steps and you can get success in this trick.
How To Control a Widget On Blogger's Specific Pages?
<b:if cond='data:blog.url == data:blog.homepageUrl'>
WIDGET CODE GOES HERE
</b:if>
2. How To Hide a Widget on Homepage?
<b:if cond='data:blog.pageType == "item"'>
WIDGET CODE GOES HERE
</b:if>
3. How To Show A Widget Only On Posts?
<b:if cond='data:blog.pageType == "item"'>
WIDGET CODE GOES HERE
</b:if>
4. How To Show a Widget On Static pages?
<b:if cond='data:blog.pageType == "static_page"'>
WIDGET CODE GOES HERE
</b:if>
5. How To Show A Widget On Archive Pages?
<b:if cond='data:blog.pageType == "archive"'>
WIDGET CODE GOES HERE
</b:if>
6. How To Display A Widget On Homepage and Post Pages?
<b:if cond='data:blog.pageType != "static_page"'>
WIDGET CODE GOES HERE
</b:if>
7. How To Show a Widget On Homepage and Static Page?
<b:if cond='data:blog.pageType != "item"'>
WIDGET CODE GOES HERE
</b:if>
8. How To Display A Widget On Posts and Static Pages?
<b:if cond='data:blog.pageType != "index"'>
WIDGET CODE GOES HERE
</b:if>
How To Control Blogger's Official Widgets?
- Go to Blogger Dashboard > Template > Edit HTML > Proceed.
- Check The Expand Widgets Templates Box
- Search For The Title Of The Widget You Want To Control
- The Code Might Look Something Like This One,
<b:widget id='HTML' locked='false' title='WIDGET-TITLE-HERE' type='Profile'>
<b:includable id='main'>
Widget CODE (Larger Part)
</b:includable>
</b:widget>
<b:widget id='HTML' locked='false' title='WIDGET-TITLE-HERE' type='Profile'>
<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
Widget CODE (Larger Part)
</b:if>
</b:includable>
</b:widget>
Will this show the gadget ON my page, or in the sidebar? Thank you
ReplyDeleteIf you will choose hide option then it will not show on sidebar. You can set code according to your choice.
Delete