Wednesday, December 22, 2010

How To Show Widget Only In Next Page (Not in "Home")

In this post, i will share to you, a trick about how to show widget only in next page. Means the widget will not appear on the Home. So our blog will be seen quickly when opened on the first time. As an example, we will edit the "Get Free Banner!" widget. Immediately,  i will give you the steps.

1. Log in to your blogger account
2. Go to Design>>>Edit HTML
3. Thick "Expand Widget Templates"
4. Then search the code below
Tips : To speed up your search, you can use Ctrl+F or F3

<b:widget id='HTML3' locked='false' title='Get Free Banner!' type='HTML'>
<b:includable id='main'>

<!-- 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:includable>
</b:widget>

(because i will edit "Get Free Banner!")

5. After that, copy the code below

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

6. Paste under :

<b:widget id='HTML3' locked='false' title='Get Free Banner!' type='HTML'> 
<b:includable id='main'>

7. Then, copy the code below

</b:if>

8. And paste under 

<b:include name='quickedit'/>

So the result will look like this
<b:widget id='HTML3' locked='false' title='Get Free Banner!' 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>
9. If you finish , save it
NOTE : Can also be applied in other widgets

No comments:

Post a Comment