Selective display of widgets

by Nandupatel on March 11, 2009

Some time you want to show some widget only on home page. For that just follow this tutorial.

1. Log in to blogger account.
2. Go to layout >> edit HTML(don’t forget to back up your templates)
3. Then expand widget templates. Find code which look like below.

<b:widget id=’Profile1′ locked=’false’ title=’Joint us…!’ type=’Profile’>
<b:includable id=’main’>
<b:if cond=’data:title != &quot;&quot;’>
<h1><data:title/></h1>
</b:if>
<div class=’widget-content’>
……
……
</div>
</b:includable>
</b:widget>


4. Just add red code before and after which you want only on home page…Just like below.

<b:widget id=’Profile1′ locked=’false’ title=’Joint us…’ type=’Profile’>
<b:includable id=’main’>
<b:if cond=’data:blog.url == data:blog.homepageUrl’>
<b:if cond=’data:title != &quot;&quot;’>
<h2><data:title/></h2>
</b:if>
<div class=’widget-content’>
……
……
</div>
</b:if>
</b:includable>
</b:widget>

5. preview and save your template…! I hope that works…!

Leave a Comment

Previous post:

Next post: