How To Create Drop Down Label On Blogger
How To Create Drop Down Label On Blogger
- Go To Blogger Dashboard.
- Template >> Edit HTML.
- Make sure you don’t put check mark in Expand Widget Templates.
- Find below code by using Ctrl+F.
<b:widget id=’Label1′ locked=’false’ title=’Labels’ type=’Label’/>
- Now replace above line (where you found) with below 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>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 wdth of drop-down by changing 100%
- You can change Choose a Category as your like, if you want.
- If you want to hide the post counter so delete this code. (<data:label.count/>)
- Save Template. That’s it.
Conclusion:
So above guide is about How To Create Drop Down Label On Blogger with Changing Label To Category. Hope by this step by step guide you can easily create drop down label and change name to category. If problem persist after following all steps then ask us, we will help you out of sure. Do share and give feedback.
Contents
