WordPress AND Blogger | Premium Free Templates or Themes,Widget or Plugin,Tutorial,Tricks etc-Complete Blog and Web Guide

Search Widget

,

Responsive Drop Down Menu For Blogger-Wordpress and Blogger-My Blogger Tricks






Disable Mobile Template

Note If you have activated mobile view for your blog then you must first disable it by going to:
  1. Blogger > Template
  2. click the gear icon
  3. Select No. Show desktop template on mobile devices.
  4. Save
Add a Responsive Menu To Blogger

  1. Go To blogger > Template
  2. Backup your template
  3. Click Edit HTML
  4. Search for these lines or similar. These lines of code exist at the top section of your template


<b:if cond='data:blog.isMobile'>
<meta content='width=device-width, initial-scale=1.0, user-scalable=0' name='viewport'/>
<b:else/>
<meta content='width=1100' name='viewport'/>
</b:if>
Replace all the above code with our custom Meta ViewPort code:
<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'/>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>

I have also included a UTF-8 character set for using some Special characters instead of images.
   5. Now Search for </b:skin>.  Click the black arrow to expand the code.
compressed blogger stylesheet
   6.  Paste the following Styles just above </b:skin>
/*-----Responsive Drop Down Menu by MBT ----*/
body {
margin: 0px;
}
#menu{
background: #50B7DC;
color: #FFF;
height: 40px;
border-bottom: 2px solid #DDD;
box-shadow: 1px 2px 9px #B1B1B1;
border-top: 2px solid #DDD;
}
#menu ul,#menu li{margin:0 auto;padding:0 0;list-style:none}
#menu ul{height:45px;width:1024px}
#menu li{float:left;display:inline;position:relative;font:bold 0.9em Arial;text-shadow: 1px 2px 4px #838383;}
#menu a{display: block;
line-height: 40px;
padding: 0 14px;
text-decoration: none;
color: #FFF;
}

#menu li a:hover{
color: #E4E4E4;
-webkit-transition: all .1s ease-in-out;
-moz-transition: all .1s ease-in-out;
-ms-transition: all .1s ease-in-out;
-o-transition: all .1s ease-in-out;
transition: all .1s ease-in-out;
background: #5FC6EB;
}
#menu input{display:none;margin:0 0;padding:0 0;width:80px;height:30px;opacity:0;cursor:pointer}
#menu label{font:bold 30px Arial;display:none;width:35px;height:36px;line-height:36px;text-align:center}
#menu label span{font-size:16px;position:absolute;left:35px}
#menu ul.menus{
height: auto;
overflow: hidden;
width: 170px;
background: #50B7DC;
position: absolute;
z-index: 99;
display: none;
}
#menu ul.menus li{
display: block;
width: 100%;
font:normal 0.8em Arial;
text-transform: none;
text-shadow: none;
border-bottom: 1px dashed #31AFDB;
}
#menu ul.menus a{
color: #FFF;
line-height: 35px;
}
#menu li:hover ul.menus{display:block}
#menu ul.menus a:hover{
background: #5FC6EB;
color: #FFF;
-webkit-transition: all .1s ease-in-out;
-moz-transition: all .1s ease-in-out;
-ms-transition: all .1s ease-in-out;
-o-transition: all .1s ease-in-out;
transition: all .1s ease-in-out;
}
@media screen and (max-width: 800px){
  #menu{position:relative}
  #menu ul{background:#111;position:absolute;top:100%;right:0;left:0;z-index:3;height:auto;display:none}
  #menu ul.menus{width:100%;position:static;padding-left:20px}
  #menu li{display:block;float:none;width:auto; font:normal 0.8em Arial;}
  #menu input,#menu label{position:absolute;top:0;left:0;display:block}
  #menu input{z-index:4}
  #menu input:checked + label{color:white}
  #menu input:checked ~ ul{display:block}
}

Customization:
  • To change the menu background edit:#50B7DC
  • To change the background color on hover edit: #5FC6EB
   7.  Now search for <body>    Just below it paste the follow code which will create the menu structure:

<nav id='menu'>
<input type='checkbox'/>
<label>&#8801;<span>My&#160;Blogger&#160;Tricks</span></label>
<ul>
<li><a href='/'>Home</a></li>
<li><a href='#'>About</a></li>
<li><a href='#'>Drop Down <font size='1'>&#9660;</font></a>
<ul class='menus'>
<li><a href='#'>Tab 1</a></li>
<li><a href='#'>Tab 2</a></li>
<li><a href='#'>Tab 3</a></li>
<li><a href='#'>Tab 4</a></li>
<li><a href='#'>Tab 5</a></li>
<li><a href='#'>Tab 6</a></li>
</ul>
</li>
<li><a href='#'>Contact</a></li>
<li><a href='#'>Drop Down <font size='1'>&#9660;</font></a>
<ul class='menus'>
<li><a href='#'>Tab 1</a></li>
<li><a href='#'>Tab 2</a></li>
<li><a href='#'>Tab 3</a></li>
</ul>
</li>
<li><a href='#'>Advertise</a></li>
       </ul>
    </nav>
Customization:
  • Replace the text My Blogger Tricks with your blog title.
  • To add spaces between words use the unicode &#160;
  • I am sure you know how to create new tabs but to create a tab for a drop down list use the following format:
Paste the following code below <ul> or above </ul> to create a drop down list:
<li><a href='#'>Drop Down <font size='1'>&#9660;</font></a>
<ul class='menus'>
<li><a href='#'>Tab 1</a></li>
<li><a href='#'>Tab 2</a></li>
</ul>
</li> 
The above menu will create only one drop down list and not multi-level drop down lists because it makes no sense to complicate the design layout for mobile devices. Keeping it simple is best.
  8.  finally save your template and you are all done!

0 comments

Readers Comments

Share and Subscribe

Subscribe via Email

Ad Zone

Latest Posts

Organic Beauty Product Deals

 ProductsAyur Herbal All Purpose Cream With Aloe VeraAyur Herbal Astrignet with Aloe VeraAyur Herbal Body Care LotionAyur Herbal Cocon...

Read in full »
My Blogger Tricks Templates Download For Blogger-wordpress and Blogger

Demo  | Download Template NameMy Blogger Tricks Blo...

Responsive Drop Down Menu For Blogger-Wordpress and Blogger-My Blogger Tricks

Disable Mobile Template Note If you have activat...

How to Create Self hosted wordpress blog-Tutorial to set up (Start) Self hosted wordpress Website

Step 1:Purchase Domain Name and Hosting Plans Host service Provider Comm...

Sponsored By

Like Us and Share

Popular Post

Wordpress Plugin

BlackLight Premium free Wordpress Blogger Templates Download Link

  The BlackLight Blogger Template is premium blogger template for personal bloggers, online magazines, newspapers or communit...

Read in full »

Wordpress Templates

BlackLight Premium free Wordpress Blogger Templates Download Link

  The BlackLight Blogger Template is premium blogger template for personal bloggers, online magazines, newspapers or communit...

Read in full »

Wordpress Tips

How to Create Self hosted wordpress blog-Tutorial to set up (Start) Self hosted wordpress Website

Step 1:Purchase Domain Name and Hosting Plans Host service Provider Commonly give CPanel or Vista Panel Platform...Sample Image of C...

Read in full »

Structure d Widget

Web Tips

How to Create Self hosted wordpress blog-Tutorial to set up (Start) Self hosted wordpress Website

Step 1:Purchase Domain Name and Hosting Plans Host service Provider Commonly give CPanel or Vista Panel Platform...Sample Image of C...

Read in full »
How to Create Free wordpress (.wordpress.com) blog-Tutorial to Start Wordpress Free Blog

Step 1: Go to wordpress.com Step:2 Click on 'Create Your Wordpress.com Blog ...

How to Start a Blogger (.blogspot.com) blog-Tutorial to Start blogger Blog in 2 Step New version

Step 1: Create a Google Account Step 2: Go to blogger.com   Step ...

BlackLight Premium free Wordpress Blogger Templates Download Link

  The BlackLight Blogger Template is premium blogger template for...

Tiny News Premium free Wordpress Blogger Download Link

  Tiny News is a Premium Blogger template theme meant for quic...

Techi Tips

BlackLight Premium free Wordpress Blogger Templates Download Link

  The BlackLight Blogger Template is premium blogger template for personal bloggers, online magazines, newspapers or communit...

Read in full »
Tiny News Premium free Wordpress Blogger Download Link

  Tiny News is a Premium Blogger template theme meant for quic...

Big News Times Premium Free Wordpress Blogger Download

  Big News Times is Blogger template,converted by blogger template d...

City Life Premium Free Wordpress Blogger Templates Download

This Template is CSS based template so its very fast template for Bl...

Source Template-Premium Free Wordpress Blogger Themes

  Source Blogger Template is a Premium Blog...

Our Sponsors

Blogger Widget

Techi Tips

Wordpress Plugin

Web Tips

Blogger Tips

Blogger Tips