Widget Not Shown in HomePage


Responding to my previous posting about the Widget Only Show in HomePage, so this time I give you a tutorial to how to make that widget does not appear in HomePage or only appear in addition to the HomePage. Actually the same, differing only in code situation.

1. Find Code Widget

- Login into blogger

- Layout
- Edit HTML
- Check Expand Widget Templates

Suppose my widget code my recent post was:
<b:widget id='HTML1' locked='false' title='' 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>


2. Add the code to be like this ...
<b:widget id='HTML1' locked='false' title='' 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 != ""'>
<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>

Now, change the code to be like this ...
Note that red is the added ....
Good luck ...

May this article you want



0 komentar:

Post a Comment

Give me your comment