cara bikin widget mu tampil di home saja:
1.Log in blogger
2.Dashboard--> Design- ->Edit HTML
3.Klick pada "Expand Widget Templates".
3.cari widget code( contoh : cari widget ID 'HTML4'). contoh seperti ini:
------------------------------------------------------
<b:widget id='HTML4' locked='false' title='Latest News' type='HTML'>
<b:includable id='main'>
<!-- 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:includable>
</b:widget>
-------------------------------------------------------------
4.sekarang tambahkan,
<b:if cond='data:blog.url == data:blog.homepageUrl'> widget code mu </b:if> contoh nya seperti ini:
-------------------------------------------------------------
<b:widget id='HTML4' locked='false' title='Latest News' 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>
------------------------------------------------------------------
sekian
0 komentar:
Post a Comment