Note: Before applying this trick you must have pre-installed Labels Widget in your Blog.


How To Apply 


■ Open your Blog Dashboard
■ Open Template → Html Editor
Now Find (Pressing Ctrl+F)

  <b:widget id='Label1' locked='false' title='Labels' type='Label'/>

Now add below given code replacing it.

Widget Code

<b:widget id='Label1' locked='false' title='Categories' type='Label'> <b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<select style='width:100%' onchange='location=this.options[this.selectedIndex].value;'>
<option>Click To Choose a Category</option>
<b:loop values='data:labels' var='label'>
<option expr:value='data:label.url'>
<data:label.name/> (<data:label.count/>) </option>
</b:loop>
</select>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

■ You can Change the name ' Click To Choose category '
■ Remove the code ' (<data:label.count/>, if you don't want to show number of posts in  labels.
Now hit the Save button and you are done
 
 
 
 
 
 
 
 

*******************************

0 التعليقات: