It means you want to hide or Display widget in Specific page.You may want to hide AdSense widget from Post page or show them in Only post page then here is how to do it.Just you need a widget which is to be hidden apply conditionals Tags and Use display:none CSS declaration in Template.Am I confusing you if yes then kindly follow us you will understand properly from below.Lets see one screenshot
- Go to Blogger Design>Template
- Back Up your Blog
- Find your widget and Section Id.If you don’t know how to find widget unique Id then you can learn from here.
- Go to edit HTML
- Find this similar codes in your Template.
<b:widget id='WidgetId' locked='false' title=’Name' type='HTML'>
<b:includable id='main'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h3 class='title'><data:title/></h3>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:includable>
</b:widget>
- If you are using HTML widget then only such type of codes is seen.Although in other widget you can find change after line 6 up to line 10.Last 2 line is similar.
- In Line 1 you need to find using your own Widget id ,title and type will be different.But to hide or show widget just you need to apply one line conditional tags(Without using closing Tag) after <b:includable id=’main’> and add following codes before </b:includable> .
<b:else/>
<style type=”text/css”>
#WidgetID {
display:none!important
}
</b:if>
- Lastly it should look like this.
<b:widget id='WidgetId' locked='false' title=’Name' type='HTML'>
<b:includable id='main'>
Conditionals Tags Here
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h3 class='title'><data:title/></h3>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
<b:else/>
<style type=”text/css”>
#WidgetID {
display:none!important
}
</b:if>
</b:includable>
</b:widget>
- Click on Save Button.
Enjoy.
Subscribe for free
Thanks for visiting Blogger Rounder.We can subscribe to Blogger Rounder's by RSS feed or email updates.
0 comments on "Hiding or Displaying Blogger Widget in Specific Page.":
Post a Comment
We Love To Hear Comments from You.Comments are Welcome.You can comment here regarding this Post.If it is not related with the post you can ask a question by Contacting Us.Before Comment Please Subscribe To our RSS or email updates.Publishing Spam Comment is Not allowed.If you want to Add Code then Please Encode it.
Simple Tags like <a> ,<strong>,<b>,<em> and <i> are allowed for preventing spam