http://blogearntipsandtricks.blogspot.com
TopBottom

    Show All Tips

    Read All Tips

    Read All Tips
Announcement:

Show Blogger Widget Only In Home Page Or Post Pages of Blogger

Tips and Tricks by Thangaraju at Thursday, April 15, 2010
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Show Blogger Widget Only In Home Page Or Post Pages of Blogger.   A solution arrived for blogger blog to show widgets wherever You want and not to show wherever You don't want.


Login To Blogger
Go To Layout ---> Edit Html

Check On Expand Widget Template

And Search For Following Code
<b:widget id='HTML2' locked='false' title=' Name of your widget' type='HTML'>

To find widget easily just search for following code and scroll to find one of yours need

<b:widget id='HTML

After finding the correct widget which You want to show in different pages, add the Red Code in them as I Have done Bellow

1. To Show Blogger Widget Only On Homepage

<b:widget id='HTML3' locked='false' title='Widget Title Name' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != &quot;&quot;'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>

<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>

2. To Show Blogger Widget Only in Posts and Not Homepage

<b:widget id='HTML3' locked='false' title='Widget Title Name' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "item"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != &quot;&quot;'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>

 3. To Show Blogger Widget Only In Archive Pages and not in post and Homepage

<b:widget id='HTML3' locked='false' title='Widget Title Name' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "archive"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != &quot;&quot;'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>


Add Red colored lines to your blogger widget  and save it.

0 comments:

Post a Comment