How to Show sidebar or widgets only on Home page or Post page

Posted on Tuesday, June 30, 2009 by Ritesh Sanap
Hi to all of you today after many days i am making an article i am making this because my next post will be depended on this trick. So you have seen many blogs with showing some widgets only at homepage and some at posts page hows it possible you might have think its to easy.

1. Login in your Blogger Dashboard.
2. Then Click on Layout.
3. Click on Edit HTML.
4. Click on Expand Widget Templates.

Now Find for the widget you want to show only on homepage or post page only . if you have added any title for it then search for the title.

Just below that widget id link, You can see a b:includable tag like this..
<b:includable id='main'>

Then Just Below it add this code to Display it only on homepage :
<b:if cond='data:blog.url == data:blog.homepageUrl'>

To display it only on Post page add :
<b:if cond='data:blog.pageType == "item"'>

To Display it on any specific page then add :
<b:if cond='data:blog.url == "Blog Post URL"'>
Now Replace the Word in Green colors with the link.

Now we have to close b:if tag

so now before </b:includable> add this code:
</b:if>


Thats All it Enjoys friends and Wait for the Next post by me That will So much Splendid

1 Response to "How to Show sidebar or widgets only on Home page or Post page"

Jainesh Says :
October 12, 2009 6:00 PM

hey this is so cool. You think this is the trick we can employ to also use a 'login' feature for our blogs? or is there some way to have a login feature like most commercial sites have. You can view some pages only if you login...Can we do that in a blog?

Leave a Reply

Hello Friend's This Blog Has Been Made For You So Do Comment So That You All Can Feel Free

Note That the comment box put for your views and complaints to share so do comment

Owner : RITESH SANAP