Wednesday, 3 April 2013

Add Horizontal Menu With Search Bar Above Blogger Header

Blogger templates can have horizontal menu bar below the blog header. It is easy to add, just add the 'Label' widget below the header in the blogger layout and your menu bar with all your blog's topic is ready. But some time you need to add another menu bar for some special pages or topics like About page, Privacy policy page and Sitemap page etc. You always want to keep this type of menu apart from your main menu bar. So why not add this menu bar above your blog's header.

The search bar above or with header looks good than placing it in sidebar. In this tutorial you will get to know how to add horizontal menu bar with search bar on the top of your blogger header.
You can take look at the Live Preview
Lets start the process by following below steps:


  • Go to your Blogger Dashboard >> Template >> Edit HTML.
  • Remember, backup your current template before editing on it.
  • Search for ]]></b:skin> in your template and paste the below code just above it.
 /* CSS FOR SEARCH BAR STARTS */  
 #search{width:250px; border:1px solid #E0DFD9;background:url(http://2.bp.blogspot.com/-L-6BIGrXfyA/TeDn95a4GxI/AAAAAAAAHLg/z1th8GgWvko/s1600/search-bg.png) left top repeat-x;height:32px;padding:0;text-align:left;overflow:hidden}  
 #search #s{width:80%; background:none;color:#3F3F3F;border:0;padding:4px;margin:3px 0 0 12px;float:left}  
 #search .search-image{border:0;vertical-align:top;float:right;margin:8px 4px 0 2px}  
 #search-wrap{padding:15px 0}  
 .topsearch #search{margin-top:0;margin-bottom:1px}  
 /* CSS FOR MENU BAR STARTS */   
 .shadowblockmenu{  
 font-weight: bold;  
 font-size: 85%;  
 width: 100%;  
 background-color: #0F3775;  /* Change the background color of horizontal bar */ 
 }  
 .shadowblockmenu ul{  
 border: 1px solid #BBB;  
 border-width: 0px 0; /* Show only top and bottom border for main menu container */  
 padding: 0;  
 margin: 0;  
 overflow: hidden;  
 }  
 .shadowblockmenu ul li{  
 display: inline;  
 margin:0;  
 padding:0;  
 }  
 .shadowblockmenu ul li a{  
 display:block;  
 float:left;  
 text-transform: uppercase;  
 color: white;  
 padding: 8px 15px 8px 9px;  
 margin: 0;  
 text-decoration: none;  
 border-right: 0px solid #BBB; /*right border between menu items*/  
 -moz-box-shadow: inset -7px 0 10px rgba(2, 2, 119, 0.6); /* Add inset shadow to each menu item. First 3 values in (114,114,114, 0.4) specifies rgb values, last specifies opacity */  
 -webkit-box-shadow: inset -7px 0 10px rgba(2, 2, 119, 0.6);  
 box-shadow: inset -7px 0 10px rgba(2, 2, 119, 0.6);  
 text-shadow: 0 -1px 1px #cfcfcf; /* CSS text shadow to give text some depth */  
 -moz-transition: all 0.2s ease-in-out; /* Enable CSS transition between property changes */  
 -webkit-transition: all 0.2s ease-in-out;  
 -o-transition: all 0.2s ease-in-out;  
 -ms-transition: all 0.2s ease-in-out;  
 transition: all 0.2s ease-in-out;  
 }  
 .shadowblockmenu li:nth-of-type(1) a{ /* Extra style for first menu link */  
 border-left: 1px solid #BBB; /* add border to left side of first menu link */  
 padding-left:25px;  
 background: url("Icon Image URL") 1px center no-repeat; /* Add icon */  
 background-size:20px 20px;  
 }  
 .shadowblockmenu li:nth-of-type(2) a{ /* Extra style for 2nd menu link */  
 padding-left:25px;  
 background: url("Icon Image URL") 1px center no-repeat; /* Add icon */  
 background-size:20px 20px;  
 }  
 .shadowblockmenu li:nth-of-type(3) a{ /* Extra style for 3nd menu link */  
 padding-left:25px;  
 background: url("Icon Image URL") 1px center no-repeat; /* Add icon */  
 background-size:20px 20px;  
 }  
 .shadowblockmenu li:nth-of-type(4) a{ /* Extra style for 4nd menu link */  
 padding-left:25px;  
 background: url("Icon Image URL") 1px center no-repeat; /* Add icon */  
 background-size:20px 20px;  
 }  
 .shadowblockmenu li:nth-of-type(5) a{ /* Extra style for 5nd menu link */  
 padding-left:25px;  
 background: url("Icon Image URL") 1px center no-repeat; /* Add icon */  
 background-size:20px 20px;  
 }  
 .shadowblockmenu ul li a:hover{  
 color: yellow;  
 -moz-box-shadow: inset -7px 0 10px rgba(60,162,221, 0.4), inset 0 0 12px rgba(60,162,221, 0.6); /* Add 2 inset shadows to each menu item */  
 -webkit-box-shadow: inset -7px 0 10px rgba(60,162,221, 0.4), inset 0 0 12px rgba(60,162,221, 0.6);  
 box-shadow: inset -7px 0 10px rgba(60,162,221, 0.4), inset 0 0 12px rgba(60,162,221, 0.6);  
 }  /* www.thepageword.com */  



Note:-
If you want to add icon for each menu tab you have to add your icon image URL in place of RED. Icon image should be square and will be better if 20px*20px or 40px*40px.
IF you want to add more tab you can repeat the the code in GREEN for each tab styling and icon.
Change the RGBA values in Yellow to change the shadow and depth in the tab before hovering.
Change the shadow and depth on hover  by changing RGBA values in  .shadowblockmenu ul li a:hover{



  • Now, you need to add HTML for your Horizontal Menu Bar with Search Bar.
  • Press Ctrl + F and search for below code:
     <div class='fauxborder-left header-fauxborder-left'>  
       <div class='fauxborder-right header-fauxborder-right'/>  
    
  • If you didn't find the above code, then try to search for following code:
     <div id='header-wrapper'>  
     <b:section class='header' id='header' maxwidgets='3' showaddelement='no'>  
     <b:widget id='Header1' locked='true' title='Herman Blog (Header)' type='Header'/>  
     </b:section>  
     <div style='clear: both'/>  
     </div>  
    
  • Now paste the below code just below the above code in PINK.
  • If you got found the code above in Purple, then paste below code just above it.
 <div class='shadowblockmenu'>  
 <ul>  
 <li><a href='#'>Home</a></li>  
 <li><a href='#'>About</a></li>  
 <li><a href='#'>Contact</a></li>  
 <li><a href='#'>Privacy Policy</a></li>  
 <li><a href='#'>Sitemap</a></li>  
 <li><div class='topsearch' style='float: right'>  
 <div class='clerfix' id='search'>  
   <form action='/search' id='searchform' method='get'>  
     <input id='s' name='q' onblur='if (this.value == &quot;&quot;) {this.value = &quot;Search here...&quot;;}' onfocus='if (this.value == &quot;Search here...&quot;) {this.value = &quot;&quot;}' type='text' value='Search This Blog Here...'/>  
     <input class='search-image' src='http://4.bp.blogspot.com/-4xLRhLRVVkI/TeDn9fTgT3I/AAAAAAAAHLY/5DuGTiOVtj8/s1600/search.png' title='Search' type='image'/>  
   </form>  
 </div>  
 </div>  
 <div style='clear:both;'/></li>  
 </ul>  
 </div>  /* www.thepageword.com */ 


Note:-
 Replace # with your URL for each tab and change the tab name accordingly.
If something goes wrong or having any problem you can comment below.



18 comments:

  1. Sadly it doesnt work on my blog. :( Do i have to enable something like the tabs page so it wll appear? When I try the codes and preview them, I only get a bulleted list of links on top of my page. Thank you for the help. :)

    ReplyDelete
    Replies
    1. मुस्लिम औरतो का खतना Islam khatna wiki photos click here
      .

      (यहाँ क्लिक से जाने आपकी वेबसाइट गूगल पर Top ना आने के 10 कारण)
      (यहाँ क्लिक कर और जाने वेबसाइट ब्लॉग से पैसे कमाए earn money from blogger blogsport)

      अगर आपको ऐडनाउ एक्टिव करना हो तो यहाँ क्लिक करे तो जल्दी अप्रूव होगा और eaning भी अच्छी मिलेंगी यहाँ से अभी ज्वाइन करे


      वीर्यपान के फायदे या नुकसान देख ले seminal fluid drinking benefits

      ADD YOUR WhatsApp Number with Girls interested friendship click Here
      .
      इस लिंक को क्लिक करे और जाने वाई फाई पासवर्ड कैसे जाने हैकर Secure wifi password
      .
      यहाँ दूसरी टिप्स है यह भी देखे -
      .
      Hack WIFI - 11 Seconds internet trick in android connection
      .

      इंडियन बॉयज के नंबर्स यहाँ क्लिक्स से देखे और अपना ऐड करे Top.howFn.com





      ADD YOUR WhatsApp Number with Girls interested friendship click Here
      .
      .
      .
      .
      इंडियन बॉयज के नंबर्स यहाँ क्लिक्स से देखे और अपना ऐड करे Top.howFn.com
      .
      .
      .
      .
      .
      .
      .
      .ADD YOUR WhatsApp Number with Girls interested friendship click Here




      Click here or Finds manny numbers all our worlds and there cities boys girls Top.howFn.com

      Delete
  2. Thank you very much for the great insight and we really appreciate the time you took to write this post.

    ReplyDelete
  3. how can i adjust width with my blog.

    Please help! my blog url:http://freeparagraph.blogspot.com/

    ReplyDelete
  4. I have another menubar but put in wrong position in template. You really save my day. It's here: http://www.canhodanang.com/

    @Shojib ju: you can add some more for #mbwnavbar like this: #mbwnavbar { width: 104%; margin-left: -24px;}

    ReplyDelete
  5. Thanks buddy. But it would be great if you also provide a demo.

    ReplyDelete
  6. Nowadays, most of the businesses rely on cloud based CRM tool to power their business process. They want to access the business from anywhere and anytime. In such scenarios, salesforce CRM will ensure massive advantage to the business owners. Salesforce Training | Salesforce Training in Chennai

    ReplyDelete
  7. We are the best IT training and placement institute in Chennai with training center in Velachery & T Nagar. Join us for IT training and placement Salesforce Training in Chennai

    ReplyDelete
  8. मुस्लिम औरतो का खतना Islam khatna wiki photos click here
    .

    (यहाँ क्लिक से जाने आपकी वेबसाइट गूगल पर Top ना आने के 10 कारण)
    (यहाँ क्लिक कर और जाने वेबसाइट ब्लॉग से पैसे कमाए earn money from blogger blogsport)

    अगर आपको ऐडनाउ एक्टिव करना हो तो यहाँ क्लिक करे तो जल्दी अप्रूव होगा और eaning भी अच्छी मिलेंगी यहाँ से अभी ज्वाइन करे


    वीर्यपान के फायदे या नुकसान देख ले seminal fluid drinking benefits

    ADD YOUR WhatsApp Number with Girls interested friendship click Here
    .
    इस लिंक को क्लिक करे और जाने वाई फाई पासवर्ड कैसे जाने हैकर Secure wifi password
    .
    यहाँ दूसरी टिप्स है यह भी देखे -
    .
    Hack WIFI - 11 Seconds internet trick in android connection
    .

    इंडियन बॉयज के नंबर्स यहाँ क्लिक्स से देखे और अपना ऐड करे Top.howFn.com





    ADD YOUR WhatsApp Number with Girls interested friendship click Here
    .
    .
    .
    .
    इंडियन बॉयज के नंबर्स यहाँ क्लिक्स से देखे और अपना ऐड करे Top.howFn.com
    .
    .
    .
    .
    .
    .
    .
    .ADD YOUR WhatsApp Number with Girls interested friendship click Here




    Click here or Finds manny numbers all our worlds and there cities boys girls Top.howFn.com

    ReplyDelete
  9. This did not work. Is this information for blogger of 2016?

    ReplyDelete
  10. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    mongoDB training in chennai

    ReplyDelete
  11. good website and given to more information thanks! and more visit
    microstrategy training in chennai

    ReplyDelete
  12. ! There is a great need for more in-depth reviews of certain products and technologies. Your tips are really helpful for anybody who wants to create reviews of any type. Great job. Thanks.
    dot net training in chennai

    ReplyDelete
  13. This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

    ReplyDelete

You can post comments and queries related to this topic.