I have long post not about tricks blog. Well, took time in between the bustle, I finally blog post about tricks. If we are diligent blogwalking, mlai from domestic up to various parts of the world you will surely find many things interesting. One of the interesting in my opinion, is selected in the sidebar widget. This time I'm posting about the only modification widgets appear on the front page (FrontPage), whereas when the visitor enters into your post, the widget will disappear. How? It's easy ... Please follow the following tutors:
1. Find Code Widget
- Login into blogger
- Layout
- Edit HTML
- Check Expand Widget Templates
Suppose my widget code my recent post was:
id='HTML1' <b:widget locked='false' title='' type='HTML'>
<b:includable id='main'>
<! - Only display title if it's a non-empty ->
cond='data:title <b:if != ""'>
<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 ...
Now, change the code to be like this ...
id='HTML1' <b:widget locked='false' title='' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.homepageUrl == data:blog.url'>
<! - Only display title if it's a non-empty ->
cond='data:title <b:if != ""'>
<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>
Note that red is the added ....
Good luck ...
Langganan:
Poskan Komentar (Atom)
0 komentar
Poskan Komentar