It means you want to use Drop menu for label so that you can reduce the space of sidebar that was occupied by Label Widget.If you want to use Drop down menu then you have to modify some Blogger XML codes.Just follow below for making Drop menu Label.
- Go to Blogger Dashboard>Template>Edit HTML.
- Back Up your Blog.
- Don’t tick on expand Widget
- Find this line
<b:widget id='Label1' locked='false' title='Labels' type='Label'/>
- Replace that line with this code
<b:widget id='Label1' locked='false' title='Labels' type='Label'> <b:includable id='main'> <b:if cond='data:title'> <h2><data:title/></h2> </b:if> <div class='widget-content'> <select style='width:90%;background-color:#fff;color:#000000;'' onchange='location=this.options[this.selectedIndex].value;'> <option>Click here to choose Label</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>
- Where,
- In Line 7 change 90% to width that suits your taste either in percent or pixel.In background-color:#fff you can change #fff with sixe dight hex color code to change background and you can change #000000 )From color:#000000 ) to change the color of font.You can get color code from here.
- In Line 8 you can change “Click here to choose a label” as your wish.
- Remove line 11 for removing post count.
- Finally click on Save Template.
Enjoy.
Subscribe for free
Thanks for visiting Blogger Rounder.We can subscribe to Blogger Rounder's by RSS feed or email updates.
0 comments on "Installing Drop Down menu at Blogger for label Widget.":
Post a Comment
We Love To Hear Comments from You.Comments are Welcome.You can comment here regarding this Post.If it is not related with the post you can ask a question by Contacting Us.Before Comment Please Subscribe To our RSS or email updates.Publishing Spam Comment is Not allowed.If you want to Add Code then Please Encode it.
Simple Tags like <a> ,<strong>,<b>,<em> and <i> are allowed for preventing spam