We have seen a horizontal menu or a navigation bar on many websites and blogs especially the wordpress blogs.But very few Blogger blogs have a horizontal navigation bar like we have here at our blog.
Here are some simple steps for setting up a Horizontal Navigation Bar -
Step 1.-Dashboard > Layout > Edit HTML. Here find this - /* Header */
Step 2.- Add this code below that -
#menu ul li{You should edit this code after step 6,so that you could know how does it looks like.
font-size:100%;
list-style-type: none;
display:inline;
padding:0px;
margin:10px;
border:0px solid;
}
#menu li a{
color:#dfffed;
}
#menu li a:visited {
color: #57E964;
}
#menu li a:hover {
color: #F88017;
background: #ffff66;
}
(Edit margin values for placement,and various html color values below for respective colours.)
Step 3.- Find this -
b:section class='header' id='header' maxwidgets='1' showaddelement='no'
Step 4.- Change -
- showaddelement='no' to showaddelement='yes'
- maxwidgets='1' to maxwidgets='4'
Step 5.- In the Header , Add Page Element > Add HTML .
Step 6.- Leave the title Blank and add the following code in text field -
<div id='menu'>Add your desired values in above code marked red. Save it.
<ul>
<li><a href="Your URL">Home</a></li>
<li><a href="Your URL">Advertise</a></li>
<li><a href="Your URL">About Me</a></li>
<li><a href="mailto:YOUR EMAIL ADDRESS">Contact</a></li>
</ul></div>
Now you can edit the code in Step 2.
Check this - How to add Drop Down Navigational Menubar with Submenus




112 comments
Hey, great advice. I managed to get my labels working but I wanted them to look more like tabs rather than the way it is now.
I would appreciate if you could give some guidance. Many thanks.
Actually wanted to implement CSS menu using this link but it's too complicated...sigh.
http://hoctro.blogspot.com/2006/09/tweaking-new-blogger-turning-labels.html
My Blog:http://wonderwealthwisdom.blogspot.com/
AWESOME Steps. Thanks for being such help I did a test blog to figure it out before I messed with my personal blog.
Thanks again for posting this.
Jess you are always welcome.....ask me anytime if you want any help... :-)
this, simple code that i ever meet...
thanks allot
Excellent work
i am looking for some help to add categories on right side in blogspot. can anybody let me know how to do it??
@ craft-sana .....you can get it here -
http://www.webmasters-forum.org/blogger-forum/225-how-add-categories-blogspot.html
For some reason my menu seems to be vertical rather than horizontal. What could I be doing wrong?
Do you have add the given code properly ?
Check for
"display:inline;"
Thanks for the tutorial...great job
Awsome. Very simple. it works very well
thanks for this simple horizontal navigation menu.. however it appears centered and i want it aligned left.. can i add somewhere a align left rule?
@ Haneey, add this style tag -
style="float:left;"
to code in STEP VI, so that it will look like -
<div id="menu" style="float:left;">
hope this will help :-)
Thanks for this. So much easier to do. Now how do you get your post to go under the right heading under the navigation tabs so that when people click on it they'll be taken to the right place?
@ JamericanSpice, you can add link to that post by editing "href=" value in code while adding it to your gadget.
Hi! Thanks for the great post. I have a few additional questions. I got my horizontal Navigation Bar up on my blog, but how do I link the tabs to my labels? For instance, I would like my clients to be able to click on the Maternity tab and it bring up a page with all of my Maternity shoots. Is this possible? Also, The Navigation Bar came up this ugly green color how do I change the color of it? And my last questions is can I get a solid bar going all the way across connecting all of the tabs like on this blog http://www.tarajanephotography.com/
This is my blog if you need to take a look at it.
http://melmurrayphotography.blogspot.com/
Thanks!
I asked a few questions before, but I was able to figure out a few on my own (for instance how to link my labels to my navigation bar and to change the color of the ugly green) But I wonder how to get my navigation Bar to have a solid bar going across my page like these two blogs...
http://wonderwealthwisdom.blogspot.com/
http://www.tarajanephotography.com/
mine keeps coming up like this no matter what I change...
http://melmurrayphotography.blogspot.com/
Thanks for such a great tutorial. I appreciate any additional help you may be able to give me!
Melinda
Hi Melinda Murray
Do you want color in background of your navigation bar?
Yes, I do would like a solid colored bar going across my page just like the other two blogs that I posted in my previous post. Do you know how to do that?
you have to do some experiments with html color codes e.g. #dfffed
can someone help me please the promblem i have is navigation buttons comes as a list but i dont want this to happen i want it to be across how it normally looks like
please check you added this tag or not
'display:inline'
This tag is used to make any list horizontal.
Well thanks for your reply i sorted out this promblem but i need help the links that i'm going to add to my button like how do i create a link EG: http://cskolchitv.blogspot.com/2009/05/ccsports1.html and then include a multimedia file on that page
You want to add link to your button?
How would i change the width of each link of my nav bar? I'm using a custom font & with the length of the text it is making eachlink 2 lines of text tall.
http://www.princesslaladesigns.com/
If the button is short then it will appear on single line. I checked your links appear on single link.
Thanks for posting these instructions. They are very helpful. As others, I am having problems with my navigational bar appearing vertically under the header. The "display:inline" does appear in the code. Does my centered header have any effect on the navigation bar?
@Tammy whats your blog's url?
I left aligned my nav menu, but there's still about a half inch of white space on the left side. Any ideas how to remove this white space? Thanks so much for great SIMPLE instructions!
Oh, my url is mrrosey.blogspot.com
Sorry!
visit
http://medimania.blogspot.com/2007/06/rosenthals-room.html
then answer here.
Hi,
I've recently gotten addicted to blogging..so trying to make my blog as nice as possible (in my opinion...XD). Now i've followed these steps and they came out great. But the problem is the words are obviously not centered.
here's my blog: www.hiddenrebellion.blogspot.com
pls take a look and tell me how i can make the whole thing centered.
add this style tag -
style="float:center;"
to code in STEP VI, so that it will look like -
<div id="menu" style="float:center;">
I can't seem to get my text centered once I create the navigation bar. I tried your code, but no luck. Any idea what might be wrong?
Thanks!
collegerecipebox.blogspot.com
read the above comment
THIS IS AWESOME THANKS
Hey! great tutorial to making a horizontal menu...
is there a way to use images instead of text in the tabs?
It can not be done. If you get solution share it here.
Thanks for that. I have been looking for how to do that all weekend. Two questions: how do you change the font of the text and how do you put a background colour behind all the links. So it looks like its sat in box?
You can experiment yourself.
To change font size make changes in
font-size:100%
To change background ulter
background: #ffff66
Get color codes here
http://free-blogger-help.blogspot.com/2009/02/get-html-color-code-values.html
Help!!! I've tried this to the tee, and everything works and looks like it's supposed to...except my links don't work! Here's an example:
If I have my "About" tab set as "www.website.com/2006/01/about.html", it DOES take me to this link if I click on it. But then once I'm in this page and if I were to click on "About" again, I get this "www.website.com/2006/01/2006/01/about.html"
What gives? this happens with every link I've tried.
www.website.com/2006/01/about.html
what is your actual URL?
Hi!
Thanks for your tutorial, it is great for a not-so-computer-savvy person like myself!
Questions:
1) How to I make my navigation tabs link to a web page?
2) I saw this questions previously, but couldn't see a direct answer. How to I make a solid color bar behind the tabs that spans the width of the page?
Thank You!
@Heidi
It will good to know your URL.
1) How to I make my navigation tabs link to a web page? >> See Step 6 in main post.
But how to align it in the left
@ Pandu
WHAT?
How do I add more buttons to the navigation bar
@ The-OnlyFour
Look at Step 6
Add following code
<li><a href="Your URL">Title</a></li>
before
<li><a href="mailto:YOUR EMAIL ADDRESS">Contact</a></li>
Great steps, this is the first tutorial that has actually helped me. I have one question, mt navigation bar is above my blog banner I would like it to appear below, how do I do that?
My blog is: http://ellainspired.blogspot.com
@ Ella >> I checked it. One Suggestion- You are using old blogger theme/template. There are lots of new and very useful templates you can use. Some of them have inbuilt Nav bar. Take a look here
http://free-blogger-help.blogspot.com/2008/07/blogger-templates.html
and
http://free-blogger-help.blogspot.com/2009/03/how-to-fix-bx-errors-while-uploading.html
loved it and use it so easy! Thanks~
Hi I tried step 6 but still cannot add more tabs to my blog, any idea why?
my blogsite: http://buttonbooks.blogspot.com
Thanks!!
Add
<li><a href="Your URL">New Menu</a></li>
bellow
<li><a href="Your URL">Advertise</a></li>
Hi sorry to trouble you again, i managed to add more tabs but the navigation bar is now vertical. The codes: "display:inline;" is in. Any idea how i can change it to a horizontal navigation? Thanks a zillion!
My blogsite: http://buttonbooks.blogspot.com
experiment with
margin:10px;
increase the value
can you please teach me how to put more than one links under a category? Example: Under the tab Categories, I want my readers to be able to see this list; Weddings Engagements Personal and etc
In blogger, there's label right? I want those to appear under Categories.. hope you get what i mean..
Do you want drop down menus?
Hi there,
thank you very much for this post!
What about this kind of navigation bar: http://blog.inspirit.ru/ ?
Is it possible to put the navigation bar in the left bottom of the header?
at the blog you mentioned, the nav bar is same, just some difference in styling, which you can change in step 1 code,....and you can put the navigation bar anywhere you want by changing its margin values in Step 1.
I already had horizontal menus as HOME About Me Contact Me...,but I want to add sub menu or sub titles to these tab menus .Ex HOME menu I want to add menu or title like 1:My native land,2:My family,3:My son....ect. How can I do ? Pls help me doing this.
Hi khemarak-កំáž–្ážšា
Check my new post for it
http://free-blogger-help.blogspot.com/2009/11/how-to-add-drop-down-navigational.html
Thank you SO much! This just saved my sanity! I searched for hours to figure out how to add a navigation bar to my blog, and this was the only tutorial that helped me. It is a great tutorial, and incredibly easy to follow! :)
i've done all of the steps, including making sure display:inline is there. but mine isn't horizontal. it continues to be vertical, with bullet points. any suggestions?
well it works perfectly. Here is another tutorial to add horizontal drop down menu bar
http://free-blogger-help.blogspot.com/2009/11/how-to-add-drop-down-navigational.html
I've been looking for how to do this for days, and this is the simplest ever. Thanks a million times.
http://www.luchysmiles.com
thanks sir
thnku so much steps ver so easy
how to have color background on the menu bar? thanks
@ i-bridals
You will like this
http://free-blogger-help.blogspot.com/2009/11/how-to-add-drop-down-navigational.html
thanX orks fine & simple.
http://uninorinfo.blogspot.com
Hi drraman,
The code works great! Thanks so much for sharing. I have a question though.
The menu seems to be centralised, I would like it to be flushed left. I've tried adding 'text-align:left;' to the css, but it's not working.
Wonder what I'm doing wrong? Can anyone help?
@ Cheryl, add this style tag -
style="float:left;"
to code in STEP VI, so that it will look like -
<div id="menu" style="float:left;">
hope this will help :-)
Wow that's fast, thanks drraman!!
It kinda works, it's flush to the left now, but is too far out and not aligned with the main header.
Help? > . <
@ Cheryl
I need demo
Here's my mock site
http://curiouslittleblog.blogspot.com
I've fixed it! It was the width and alignment which I got wrong. Thanks for your help anyway drraman, I really appreciate it :)
I know this post is old...but...is there any way to change the font face?
I tried putting
"font-face: calibri" under "font-size: 100%" but that was just a guess.
Any help would be amazing. Thanks!
Dear Lucy & Koda
Use this code
<FONT FACE="Old English TEXT MT,Comic Sans MS,Arial">
Hello! I followed the code exactly and everything went perfectly, except I can't figure out how to change the tabs from grey to white. Can you please help with this? My url is twobobbinslater.com
Thanks!
Try to change the color code values given in the step 2.
Aha! I figured it out, I had to change the template. :P Thanks for your help!
Omg!!! Amazing! I figured it out! You're amazing. The only confusing part of this post was when it came to linking to the labels. All you need to do is go back to your HTML javascript widget and insert right url for each label. To get to that, just click your label in dashboard and copy/paste the url.
Cheers Draaman
PS: I would like to get rid of the little white line between my labels, any way you can help me with that? www.textureandraw.com
@ Ria Burgess
In your color change the hover color #ffffff to #f5f5f5
this really helps me drraman
its cool but how do I link the tabs to my labels? each time when i have a new post will i have to post on the main page then copy the link ofthe post and add it to the html?
You can easily link the labels
e.g. On this site
http://www.blogger-help.com/search/label/Navigation%20Bar
You do not need to place links every time when you make a new post just give it a label.
Dr.Raman,
I have a question, I managed to create a nice menu bar like this in my blog : http://hellotamanh.blogspot.com/
However, I want all post related to foods foods will be under food menu,
and anything related to travel will be under traveling menu
but I am unable to do that
and pls disregard my nickname
thank you
it's easy just add labels to your posts. e.g. If you post about food then give the label "Food". And put the label link into your menu.
hey it works,n thanks a lot 4 such a great workdone..
Hello, I have created a blog http://www.dreamsinaction2011.com/ and I would like the category of "INCRIPCIONES!!!" in the horizontal menu to be in a different colour (orange for example),...could you help me? Thanks,
Hi iratxe
View: http://forum.bytesforall.com/showthread.php?t=1261
i am unable to get the horizontal menu bar for my blog http://elli-itsmylife.blogspot.com/ .its showing errors.:(:(:(
Hi Elvira Lobo(Elli)
It is the easiest menu bar to install. Please add the all codes very carefully.
You can also try other menubars:
http://www.blogger-help.com/search/label/Navigation%20Bar?&max-results=6
thanx so much for the reply.....yipee finally got horizontal menu bar for my blog
how put the code to my blog?
But your menu bar doesn't highlight which link is being shown like mine does. If you want to know how to do this, contact me on my website.
Hi, i know this is quite a dumb qns but i go to dashboard and click layout but i couldn't see 'edit HTML' anywhere. Can anyone help me on this?
Hi Anonymous
If you are using Old Blogger dashboard, then go to Design >> Edit HTML
If you are using New Blogger dashboard then go to
Templates and click on Edit HTML option just below the Live on Blog.
hi i am new to blogger, i would appreciate your suggestions for my blog. my blog address : itandbpo.blogspot.com , kindly have a view and let me know if any suggestions for better working are there.
thanks
Read abt the Blogger hacks from this site and add them to your website
Also this will helpful
http://www.blogger-help.com/2010/09/how-to-turn-your-blogger-blog-into.html
Mine is not horizontal either but vertical pls help me.
@Marilie
increase value of
margin:10px;
And now how can i put my posts to the links??I read this but not understand it clearly pls see http://www.fashionblover.blogspot.com/
In step 6 code add the title of menu and link address to Your URL in red.
But i want in one menu ex. outfits to have more than one post...cant this bee done automatically with a url in the post or somethin?
Can i put in every post i make a url to connect with a section in the menu. I want to put more than one URL...Thx
For that give categories to your posts and add this category URL into menubar as I have done in this website.
HOW DO I CHANGE THE FONT STYLE to georgia
Hi emily
Add
font-family: Georgia;
just below
#menu ul li{
in step 2 code
do you need a server for the navigation bar to link to the home page, about me, etc...?
@Anonymous
You do not need server or the navigation bar to link to the home page
This so hard to do. I am stuck at STEP 5. I am using the new blogger interface and I don't know and can't find page elements. I have tried to enter those codes from step 5 into my title box and it was too long. Please help!
For new blogger interface Go to Layout >> On the right there are Page Elements page.
Post a Comment