Display Sidebar in Homepage and Postpage only

Its a simple trick to appear any sidebar or widgets in home page only or postpage only in blogspot blogs. You may have seen in some blogs, some sidebar appearing only in Homepage and when you go to inner post you will not find them as if it disappeared. Without talking more i would like to share this simple trick with you:-

First Login to your Blogger's Dashboard

  • Design
  • Edit Html
  • Click on Expand Widget Templates
You may have given any name to the sidget (eg: Labels, Photo ... ) Use CTRL+F and find it. Just Below that you can find this code b:includable  as below <b:includable id='main'> Now
  • if you want to display this widget only in Home page enter this  code just  below above code

<b:if cond='data:blog.url == data:blog.homepageUrl'>

  • if you want to display this widget only in post pages enter this code just below above code

<b:if cond='data:blog.pageType == 'item''>

  • if you want to display this widget in specific post enter this code just below above code

<b:if cond='data:blog.url == 'http://www.(your post url that you want to display the widget in)''>

Now just go a little below and look for this code </b:includable>

Add </b:if> code just above the </b:includable>

Add Comment