Inactive blog. If you need anything, contact me : lloydalemania@gmail.com Hire me

Free Elegant Accordion Menu For Blogger


NEW! Now with a better and nicer look.
So for today we will be sharing our own Elegant CSS Accordion Menu design only for Blogger. This accordion is pretty helpful of course when we have a very long sidebar menu like for example is the Popular Posts which shows the top 10 posts from our blog, we cannot deny that it somehow consumes or needs a huge space in our blog.
So basically we want to create a section where we can add gadgets afterwards. You can follow these simple steps to add this Free Elegant CSS Accordion Menu.
Step:
Step 1 : Navigating (?)
    Go to Blogger
    Template
    Backup your Template
    Press Edit HTML

Step 2 : Adding the Code
    Find (ctrl+f) </body>
    Copy the following code and paste it before </body>

<script type='text/javascript'>
$(function() {
$(&#39;.MBAaccordion .widget-content&#39;).hide();
$(&#39;.MBAaccordion h2:first&#39;).addClass(&#39;active&#39;).next().slideDown(&#39;slow&#39;);
$(&#39;.MBAaccordion h2&#39;).click(function() {
if($(this).next().is(&#39;:hidden&#39;)) {
$(&#39;.MBAaccordion h2&#39;).removeClass(&#39;active&#39;).next().slideUp(&#39;slow&#39;);
$(this).toggleClass(&#39;active&#39;).next().slideDown(&#39;slow&#39;);
}
});
});
</script>

    Find (ctrl+f) ]]></b:skin>
    Copy the following code and paste it before ]]></b:skin>

/*--------------- MBA Accordion Menu ---------------*/
.MBAaccordion {
margin-bottom: 20px;
}
.MBAaccordion .widget-content ul {
margin: 0;
}
.MBAaccordion .widget-content ul li {
list-style:none;
}
.MBAaccordion h2 {
padding: 20px 20px;
background:#00aa9f;
color:#fff;
font-size:14px;
font-weight: normal;
display: block;
cursor: pointer;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s;
}
.MBAaccordion h2.title {
background: #00aa9f url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_Pdq1VaOeIbHFvj4X-zBUA3FR1BECI7gIbxlDCC7k1sKRZSIjIRNDBpPNYAb_2o4WSn1zMRukm1LWZ5hxM64sBtKHlot3fzLoPEgrVq9tBmMchQg793Y24LSL9ENPYFBUTEQoH7oZ15gc/s20/Leader_Avatar-128.png) no-repeat 95% 50%;
}
.MBAaccordion h2.title:hover, .MBAaccordion h2.title.active {
background: #008d84 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_Pdq1VaOeIbHFvj4X-zBUA3FR1BECI7gIbxlDCC7k1sKRZSIjIRNDBpPNYAb_2o4WSn1zMRukm1LWZ5hxM64sBtKHlot3fzLoPEgrVq9tBmMchQg793Y24LSL9ENPYFBUTEQoH7oZ15gc/s20/Leader_Avatar-128.png) no-repeat 95% 50%;
-moz-box-shadow:    inset 0 5px 3px #007d75;
-webkit-box-shadow: inset 0 5px 3px #007d75;
box-shadow:         inset 0 5px 3px #007d75;
text-shadow:1px 1px 1px #00544f;
}
.MBAaccordion h2.popular {
background: #00aa9f url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju_9M53Uol3OF3MkUIEGPJ806_oe1IK2_3Nj81bjqpozhAmx1nGs2_-K6WrpH1VqOI-FTTcPuPCHwKEXvtrnDURZnXL0kEJD2FDJ4MBMGtf8xrsoAjCkxtiq9tlpf4WV2txUCk_6YCuUIS/s20/popular.png) no-repeat 95% 50%;
}
.MBAaccordion h2.popular:hover, .MBAaccordion h2.popular.active {
background: #008d84 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju_9M53Uol3OF3MkUIEGPJ806_oe1IK2_3Nj81bjqpozhAmx1nGs2_-K6WrpH1VqOI-FTTcPuPCHwKEXvtrnDURZnXL0kEJD2FDJ4MBMGtf8xrsoAjCkxtiq9tlpf4WV2txUCk_6YCuUIS/s20/popular.png) no-repeat 95% 50%;
-moz-box-shadow:    inset 0 5px 3px #007d75;
-webkit-box-shadow: inset 0 5px 3px #007d75;
box-shadow:         inset 0 5px 3px #007d75;
text-shadow:1px 1px 1px #00544f;
}
.MBAaccordion h2.subscribe {
background: #00aa9f url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqVwRhJkQgLY3XFC0UMtbraWKqE0EcSBHTG2xZEihuPQRp-UdCtB2DqHIjCoqIY3Foa_JhDs7DMTdYii-IN8lbc4XDbqNZBq-0WS_1EvKrtY8MAzcT0m3_tKlIuA5Ym4bJmi3q7S2nLB6g/s20/mail.png) no-repeat 95% 50%;
}
.MBAaccordion h2.subscribe:hover, .MBAaccordion h2.subscribe.active {
background: #008d84 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqVwRhJkQgLY3XFC0UMtbraWKqE0EcSBHTG2xZEihuPQRp-UdCtB2DqHIjCoqIY3Foa_JhDs7DMTdYii-IN8lbc4XDbqNZBq-0WS_1EvKrtY8MAzcT0m3_tKlIuA5Ym4bJmi3q7S2nLB6g/s20/mail.png) no-repeat 95% 50%;
-moz-box-shadow:    inset 0 5px 3px #007d75;
-webkit-box-shadow: inset 0 5px 3px #007d75;
box-shadow:         inset 0 5px 3px #007d75;
text-shadow:1px 1px 1px #00544f;
}
.MBAaccordion h2.tags {
background: #00aa9f url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_aODReEWoJSFHblVqP0rA135ub8fAZ0lPm9MIzSxcrb2FlrWpfa7qZBg7n_A7CkM8_fEmUK5fkzKbgh9V3MkH6VBdtTebsVvW6mSy0UHgOzi7z5C94NuYJ8ZVaJnp6IBCYNdk5XG6FL6M/s20/tags.png) no-repeat 95% 50%;
}
.MBAaccordion h2.tags:hover, .MBAaccordion h2.tags.active {
background: #008d84 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_aODReEWoJSFHblVqP0rA135ub8fAZ0lPm9MIzSxcrb2FlrWpfa7qZBg7n_A7CkM8_fEmUK5fkzKbgh9V3MkH6VBdtTebsVvW6mSy0UHgOzi7z5C94NuYJ8ZVaJnp6IBCYNdk5XG6FL6M/s20/tags.png) no-repeat 95% 50%;
text-shadow:1px 1px 1px #00544f;
}

    Find (ctrl+f) <div class='sidebar-wrapper'>
    Copy the following code and paste it before <div class='sidebar-wrapper'>

<b:section class='MBAaccordion' id='MBAaccordion' showaddelement='yes'>
    </b:section>     

    Go to Layout
    Then add a Gadget on the section that we have created. (Next to your Sidebar Section)

Step 3 : Saving
    Save your Template

Customization
    Change #00aa9f with your desired background color.
    Change #008d84 with your desired background hover color; and
    Change #00544f with your desired text shadow color.

Note :
    You might not see <div class='sidebar-wrapper'> in your template, so try to look for any similar code.

Let me know if you're facing any problems installing this widget. Enjoy blogging!

0 Comments

Be the first to comment

[default]

mba-1

[enabled]

521946774841758

Mailing List

Sign up with your email address to receive news and updates straight in your inbox.