Saturday, October 23, 2010

Show Widget only on Postpages - Don't show Widget on Homepage

surround in html edit template mode (enhanced)

example:

<b:widget id='HTML3' locked='false' title='' type='HTML'>
<b:includable id='main'>
<!-- only display title if it's non-empty -->

add below:

<b:if cond='data:blog.url != data:blog.homepageUrl'>

remove the first tag that close the widget:
</b:if>

close the code with:

</b:if>

before:

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

sample:

No comments:

Post a Comment

English France German Spain Italy Dutch Russia Brasil Japan Korea Arabic China