Tips To Show sidebar or widgets only on Home page or Post pages

tips
Ya its true and you can do this , just widject on your choice to appear in the home page or any inner pages:

Let’s start:

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

Now here you find for the widget you want to show only on homepage or post page only,may you have added any title for it  if yos 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 you can add this:

<b:if cond=’data:blog.pageType == “item”‘>

If you want to display it on any specific page oe post than add this :

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

Now before </b:includable> add this code: </b:if>

Related Posts with Thumbnails
You can leave a response, or trackback from your own site.

Leave a Reply