You can see the the menu ,how they will look after adding from below image.How to add these top navigational links below blogger header:-

Just Go To Layout > Edit Html
And Search For </b:skin>
Now add these below Css codes before it-
/* ----- LINKBAR ----- */
#bg_nav {
background: #000;
width: 960px;
height: 29px;
font-size: 11px;
font-family: Arial, Tahoma, Verdana;
color: #FFF;
font-weight: bold;
margin: 0px auto 0px;
padding: 0px;
border-top: 1px solid #333;
border-bottom: 1px solid #000;
overflow: hidden;
}
#bg_nav a, #bg_nav a:visited {
color: #FFF;
font-size: 11px;
text-decoration: none;
text-transform: uppercase;
padding: 0px 0px 0px 3px;
}
#bg_nav a:hover {
color: #FFF;
text-decoration: underline;
padding: 0px 0px 0px 3px;
}
#navleft {
width: 720px;
float: left;
margin: 0px;
padding: 0px;
}
#navright {
width: 220px;
font-size: 11px;
float: right;
margin: 0px;
padding: 6px 5px 0px 0px;
}
#navright a img {
border: none;
margin: 0px;
padding: 0px;
}
#nav {
margin: 0px;
padding: 0px;
list-style: none;
}
#nav ul {
margin: 0px;
padding: 0px;
list-style: none;
}
#nav a, #nav a:visited {
background: #222;
color: #FFF;
display: block;
font-weight: bold;
margin: 0px;
padding: 8px 15px;
border-left: 1px solid #000;
}
#nav a:hover {
background: #6e6d6d;
color: #FFFFFF;
margin: 0px;
padding: 8px 15px;
text-decoration: none;
}
#nav li {
float: left;
margin: 0px;
padding: 0px;
}
#nav li li {
float: left;
margin: 0px;
padding: 0px;
width: 150px;
}
#nav li li a, #nav li li a:link, #nav li li a:visited {
background: #333;
width: 160px;
float: none;
margin: 0px;
padding: 7px 30px 7px 10px;
border-bottom: 1px solid #000;
border-left: 1px solid #000;
border-right: 1px solid #000;
}
#nav li li a:hover, #nav li li a:active {
background: #666;
padding: 7px 30px 7px 10px;
}
#nav li ul {
position: absolute;
width: 10em;
left: -999em;
}
#nav li:hover ul {
left: auto;
display: block;
}
#nav li:hover ul, #nav li.sfhover ul {
left: auto;
}
Please edit the width of the above codes in red to adjust to the width of the navigation menu to adjust it to yours template width.You can change the color and design of above css also if you are capable of it.
Now Search for below codes-
<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Testing templates (Header)' type='Header'/>
</b:section>
</div>
And add the below codes after the above codes:-
<div id='bg_nav'>
<div id='navleft'>
<div id='nav'>
<ul>
<li><a href='/'>home</a></li>
<li><a href='#'>Widgets</a></li>
<li><a href='#'>Hacks</a></li>
<li><a href='#'> Tutorials</a></li>
<li><a href='#'>Templates</a></li>
<li><a href='#'>Contact</a></li>
</ul>
</div>
</div>
</div>
Thats It Now Preview It.If its working fine just save your template.
Change the # above with links to yours.I hope you would like this navigation menu for sure.I will be back with one more great navigation link bar menu for sure ,uptil then enjoy this.



129 comments:
Good day! I just want to inform you that I won the 6th place at Cheth’s Studios Christmas and New Year Bash huge contest for bloggers! Here’s the proof — chethstudios.blogspot.com/2008/11/chethstudios.html
It seems that you are in charge of the 125 ×125 ad spot for 1 month here in your site. Here’s my button URL: http://i36.tinypic.com/118osc8.png
Thanks and more power!
Regards,
Dhadha G. — http://i-heart-contest.com
You are doing a great job here. Please i want to create a blog with the word "REVIEW" on the top horizontal navigation menu. l want a sitauation whereby all review posts i will make will be posted on this nav menu "REVIEW" instead of the main post area so that anybody who clicks on "REVIEW" will be taken to the page(s) containing all reviews i have made.The same goes for 2 other items i will add to the nav menu. Could you please help me on how to do this? l am a newbie and i do not know how to do so. Your readers are also welcome to contribute. l will also appreciate it if you can send same to me email address: okwutte@yahoo.com
l will add your blog to my list when i eventally start blogging.
Thanks
Joseph
Thanks for the help. You made it pretty easy, but not so easy that I didn't have to do some of the work :)
I did have a desire to have the navigation buttons centered middle of page instead of aligned left. Don't think I did it right, but I changed the left align px count to push everything right - trial and error until all the buttons lined up how I desired. Thanks again.
Here is my site and I'm not advertising but just posting for benefit of those novices like myself: http://aconqueringfaith.net
Can anyone tell me how to change the background color of the navigation bar?
@ I am ya friend change color #000 code below to change color
/* ----- LINKBAR ----- */
#bg_nav {
background: #000;
Thanks, this was so easy, especially for a non-techie like myself! I Appreciate the help!!
I have made my own images (buttons) and put them in a horizontal navigation bar under my header but I don't know how to link them to my Blogger post labels. I know how to link them to a static page (like one particular post), but how do I link them to a particular label? For example, click on the button "recipes" and it takes you to all the posts that have the label "recipes".
THANK YOU IN ADVANCE!
use the link of lable page to show them
HI Anshul,
I implemented the navbar and it worked like a charm. thanks.
But, Plz Help me to place two adsense link units exactly above and below the navbar. i tried but am not able to find a way to do this.
use this http://anshuldudeja.blogspot.com/2008/10/put-adsense-link-unit-in-blogger-header.html to place above navbar and to place below navbar just add your codes in any hml/javascript page elemnt in layout and drag it to below your header in your layout...
Please help me,... the visitor's comment that has entered did not emerge on the column commented in fact already no the moderation, embeded post, comment show
unable to understand your query friend
why i can't add more than 8 labels???
there is any way to do this?
The space might have finished in your horizontal menu , then where it will show.
sorry for tha suffering..i found it!!
Thanks for this tutorial, although I have the same problem, I can't add more than 8 labels, I'll try t tinker with the codes first. Thank you! :)
Ya i have added only 6 links in my sample code friend make them increase from codes by increasing list in second codes
Thanks for the reply, how do I increase the codes? sorry but I tried, just can't seem to make it work. ~x(
is it possible to keep the menu item that you have selected highlighted? ie if I pressed widget...can it stay highlighted orange so that i know this is the menu item that i am on?
I'm sorry, I figured it out already. Thank you so much. :D
Hi, I used this code and changed all of the links to my own, however when I add a label to my posts they do not show up on the new pages. They all say no posts match your query. Am I doing something wrong??
@brence ya fiend but you can make it but have to make many changes to css
@kellis when you add labels the gap between label names is there whch s filled by %20 sign check it out there wuld have been that mistake
That stuff i really hunting for here n there. At last i found it here. Thanks a lot for your good work. Keep sharing such stuff.
how do you add more than one post in the tab? I have multiple posts to be listed under a tab?
newsaroundtheblogs at live dot com
thx
You mean to say drop down posts under category in his tab
Thanks a million, Anshul!! You have just solve my problem in a very simple manner!!! Love it!!
I can only add 9, how do I add more, I read the past comments, but still cannot figure it out, please help. My site is, SpakyStokes.com
Got it, but how do I center everything?
@ John you have made it adjust to center and added many menus just looks great in your blog seems its made for you only friend.
Hi Anshul,
I added more codes but still am not seeing the additional links. Also, is there a code/edit to make the tabs have drop-down posts under each category?
Thanks SO much!!
Sorry another question, Anshul...
I figured out how to add more links but when you click on one (example "About Us") it shows all of the posts, not just the About Us post.
Also, any help with creating sub-menu topics (drop-downs) would be greatly appreciated! Thanks again!!!
@rachael Ok i will place an post for creating sub menu topics too ..
You're AWESOME, Anshul! Thanks a million! :)
heres the post for you Horizontal Multi Level Drop Down Sub Menu Links Blogger
Hi, I just wanted to say what a great job your doing. The tutorial was very good, simple and straight to the point. I had been searching around for a while trying to figure out how to add this feature to my blog and you came through right on time. Thx. again!!!!
Anshulbhai, please tell how can I put this bar Vertically ? thx in advance.
also is there any way to have submenus in it
with out the java script thing (I mean via DHTML / CSS) cause noscript and adblock of firefox prevents the submenus :(
Check out these horizontal and vertical submneus take any one you like
http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm
http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm
http://www.dynamicdrive.com/style/csslibrary/item/nested_side_bar_menu/
i hope you will like one for sure and install it from there if not let me know i will hold an tutorial
And third one is without javascript as you want.
Thanks SOOO much! You just dont know how long I have been trying to find out how to do this. I am now trying to figure out how to change the color 8-}, lol!
@ braids just change from here just chnage the color code you want to use in this line i.e second line of code above
background: #000;
Chnage #000 to color code you wanna use
Hey!! thx. for the excellent and easy installation tutorial. I've been looking for this for quite sometime and you made it extremely easy to put on my site. thx. again!
How will it know where the other pages are though? I'm a bit lost. Blogger isn't like wordpress where you can actually create different pages.
Nice post !!!! you are cool man keep it up
for some reason the background is white.. and the body is grey. I tried changing the color but can't. Also.. how do you move the links down so I can add a header?
@ katelyn in above code css background color is #000 which id vode for black color you can chnage it to set any color and #fff is for white so just you can edit this css to make it adjust to your template.
And as in the tutorial i said where to define the links if you will add like n tutorail you will get them below header only as i i have shown in picture.
Thanks a bunch - this is exactly what I was looking for, and it works flawlessly!
Thanks for this!! One question: my drop down button for Links is too wide for my sidebar. How can I fix this?
How do I make the button link drop down menu smaller in width for a side bar? Thanks!
@TkP button wdth varies according to your text in link
i saw some site can add Archive in the link tab...
is it using the "<$BlogArchiveName$>" to create a list?if yes, the how?
I cannot add more than 8 links even after repeating more code in the second. I added space too. Nothing works
Wow. Amazing navbar. Looks cool. Thanks for sharing. My blog is looking nice now.
Thank you so much! I've tried other horizontal navbar code, and they didn't work...only this did! But now I'm having a problem...my menu bar shows up correctly in IE, but on other browsers like Opera and Firefox, it is misaligned with everything else, and there seems to be some extra padding in the sections (I used image links). Please help! (www.veggie101.com) Thanks!
@shoshana ya there is lil differcne in mozilla as when i cheked first it seemed to me the hover effect of menu as was not looking bad,in ie its ok.I can't suggest as to correct as you used it in your own way abve yur image.But might any property like overflow hidden may work over it or have to make margins and paddings adjust to both browsers.
Your contribution to blogging is awesome!!! Thanks for sharing this with the rest of us bloggers. Cheers!
Hi Anshel,
Thanks for this straight forward clear tutorial. I appreciate your blog and useful html/css tips.
Many thanks. This post is very helpful. Cheers!!!
thank you so very much! it beautiful
This was the easiest tutorial and gave me exactly what I wanted! Thanks!
Hi,
I have a menu bar with a graphic image and want to have the drop downs for each category without messing up the look of my nav bar. Is there a way to do this?
http://www.lastshredsofsanity.com
hi there, i am quite a noob when it comes to blogging and currently am using the Chucky layout for this blog that i am doing. everything so far so good except i would like to have the horizontal navigation on the grey bar below header. if you can be of help that would be great. this is my site: http://myproperty-mart.blogspot.com/
@melissa the background image is being used for navgational bar.Just take tht image and make them of color you want and chnage the image urls with yours.Only this is the perfect solution for it.
how can i center the links? i can't figure it out. please :)
@ curious they are centered.
i have put more than 6 links up but they aren't appearing when i load the page. is there a reason why that would happen? thanks for any help!
This is an awesome blog. I have been searching for 3 days on how to add a navigation bar that's connected to the labels instead of the Post Title and you have made it so easy. Thank you so much! Do you have a tutorial on how to create a contact box like yours?
@the blackraven no i don't have but wait 2-3 days i will publish an tutorial for it.
Thank you for awesome tutorials ;o)
Thank you this worked brilliantly
HI, I am trying to change the colour of the bar, but it is only doing a bit of it when I change the #000 at the beginning of the code..any suggestions? Thank you
@jennie color is not only defined at only 1st part it defined later also like link color visied link color try change them alos to make more changes.
thanks for the tutorial..
really helpful..
Very nice tutorial! Can you tell me how to add the search box to the nav bar as well?
@katie for this u need to create new css for search and define it in navbar.You should know css for it to do.
This is a great tutorial! Thank you! Could you please help me move my 3 navigation links to the center of my site, instead of left aligned?
@marsha it seems you have done checked your blog.
I noticed that there is a small "white space" on the left of the menu.
How do I remove the white-space so that the menu can start on the extreme left?
@leo show me i checked your blog but didn't got you as nothing seems there.
Insert your CSS code exactly into my blog. No white space on the left but how do I extend the black bar till the right hand end of my page? I use width 960 px.
@leo i checked your blogs in some its full and in some upto links.That only might some css property in yout template affecting it.Can'tell exactly unless i see codes and try to do myself.
Hi can you tell me excatly what to do to show more than 6 elements on menubar? Thank you!
@anuj just between the start and close of ul tag the li itemes are addedin between .Just add more as much you want in between them.
Thaks a lot, this is very usefull. i use this in my blog: hxxp://madesariyantahealth.blogpt.com
thanks a lot again
How do I center my horizontal link list? www.homemademom.com
hablab7@yahoo.com
Thanks man! It's working! Check it out at
www.electronicmb.blogspot.com
@homemade just add #nav li a {text-align:center;}
Bad view if Internet Explore and Opera, please help me to best view in Internet Explorer and Opera...
can you give me hack code for IE and Opera??? but its working on Mozilla and Chrome...please help me!!!! my blog http://mufctech.blogspot.com/
@arham there is no hack just use latest versions of ie and opera it works fine.
please check my blog at Opera browser, that's not works fine.... http://mufctech.blogspot.com/
Exelente entrada, estoy apenas empezando con mi blog lpilajo.blogspot y este tipo de cosas ayudan a ir mejorando de a poco la apariencia del mismo
I hope you can help. I want a solid background but want to use transparent background images for the buttons - can you tell me how to do that?
Thanks for this great tutorial. :)
@the girl see the below css
#bg_nav {
background: #000;
This gives the background to whole menu.
#nav a, #nav a:visited {
background: #222;
This gives background to particular link only as you saying.
#nav a:hover {
background: #6e6d6d;
This gives background to particular link on hover effect.
Now to use image u have to use css like.
background:#222 transparent url(IMAGE-LINK) no-repeat scroll 0 0;
Now you can play with it.
THANK YOU ;)
I added the line you said to in order to center my link list, but it didn't work. I don't really know where to put it. Can you advise?
@homemeade mom ya have to do some editing in css to make it center.will tell you what changes needed.
any horizontal navigation without hacking template
Can I email you my HTML?
@homemeade just invite me to your blog at my id. I will do it.
@Anshul it only looks centered now because I spent much time changing font size to get it all in one row. Too large or too many words and it went to 2 rows, too few and it was all to the left side. Site is www.homemademom.com
@homemade looking good now :)
Hey Anshul..great job..I tried this pice of code..and am getting an xml error('make sure all xml tags are closed properly')..I ahve no clue whats the mess..Please enlighten..
Thanks much!
@varsha ya u might be just adding the code at wrong place find them properly and add.
@anshul it looks fine because I changed font size to squeeze it in. If I Make any changes it won't fit. Can you view it on an iPod? The menu bar bumps the last tab onto a second row. can I make it so it auto centers?
@homemeade hehe i dont think now we have to check our designs compatibility to ipods and mobiles.
@anshul I know, I'm just picky that way. So is the code simple to force it to auto center or difficult? I'd still love to insert the code so it will look right no matter what tabs I create, without me spending hours changing the font type and size to get it "just right".
@homemade no will be difficult to adjust with this css to center.Have to write new css codes for you or edit them completely.
@anshul I see. So what would you recommend?
what to say either use any tutorial to satisfy you :)
or try this http://www.anshuldudeja.com/2009/05/add-linklist-as-horizontal-top-menu.html
thanks its working
http://fastonlineearning.blogspot.com/
Thanks a lot for posting this. It's just what I needed for my blog. The navigation bars looked great.
http://MorningArtist.blogspot.com
hi genius anshul!
i have created horizontal menu but i don't know hot to link it to my posts... please help me how to do it... i need it so badly. hope you will reply. my blog is...ruindays.blogspot.com
ron dy
@ron these are the present codes in your html
<li><a href='/'>home</a></li>
<li><a href='personal'>personal</a></li>
<li><a href='news and information'>news and information</a></li>
<li><a href='unbelievable stuff'>unbelievable stuff</a></li>
<li><a href='health and lifestyle'>health and lifestyle</a></li>
Just keep the the link in href='link-here' instead of text as u have kept like personal or news and information it will get linked then.
I am trying to center my entire menu. I found your response to homemade
Anshul said...
@homemade just add #nav li a {text-align:center;}
But I'm not entirely sure where to put it. I've put it in a few different places with no luck.
@lacey no it will not center in this have to write new css for it.
what do you call the "Home>>Hacks>>Horizontal Navigation Menu Links For Blogger"?... that is what I need for my blogger blog. Thanks in advance.
@pakia we call then breadcums for blogger
clicking on my navigation tab does not show up the posts on that labe... what can I do dears?
@safal u are adding wrong links in labels just add lable widget to sidebar then copy the link from there and place that link in place of #.
By copying menas copy link location by right click.
I am having the same problem as the others. I added 8 menu items and only 6 are showing up. HELP!
I thought I left a comment already...but I don't see it so I will leave it again just in case.
I added your codes so I can have the navigation menu on my blog...but it will only show 6 buttons. I added 2 extras in between the others and they still aren't showing up. Any suggestions? Thanks a bunch.
@christina i saw your blog its showing all 8 menus :)
hi anshul jst wanna ask how to put the links align center on the nav bar cause i only got 4 links to show thats all thanks
@pug i have told this various times above it cant in this css.
hi, how can i add more space between the links in my navigation bar?
@deb seems u have done
THANK YOU VERY MUCH ANSHUL.....
Really helpful tutorial.
i set up the bar according to your instructions, how would i change the colours and make it functional?
GREAT help! Thank you so much!
Post a Comment