Creating navigation or menu tabs in Blogger
A typical navigation bar/tabs |
A navigation or menu bar is a bar made up of tabs. “Behind” each of those tabs is a link -to a post page, a static page, a label page, to another website etc. Making navigation tabs is not that difficult. They are basically links with some styling added for visual appeal. While links are arranged vertically, navigation tabs are usually arranged horizontally.
(If you come here looking for dropdown menu, then read Installing a multi level CSS dropdown menu).
In this tutorial we will install the bar just below the header, a typical place for navigation bar. The bar will be added as a gadget via Page Elements page. The advantage of using a gadget is that if you want to remove it later on, it can be done easily without editing the HTML.
But in order to do that, the template must have an Add A Gadget link thingy or widget container as I would call it, at that particular location. In Minima template (the template I’m using to test this project) as with most other templates, the is no such element. What do we do then? We create it.
No Add A Gadget to hold the widget/gadget |
Step 1. Adding an Add A Gadget
Adding a Add A Gadget is done in your template HTML.
- Go to Dashboard > Design > Edit HTML.
- Back up your template.
- Look for the following lines (or something similar) in your HTML code:
<div id='header-wrapper'> <b:section class='header' id='header' maxwidgets='1' showaddelement='no'> <b:widget id='Header1' locked='true' title=Your Blog Title(Header)' type='Header'/> </b:section> </div>
- Right under it, paste this code:
<!--Navigation page element starts --> <div id='navibar-wrapper'> <b:section class='navibar_section' id='navibar_section' showaddelement='yes'/> </div> <div style='clear: both;'/> <!--Navigation page element ends -->
Step 2. Adding the links
- Go to Layout > Page Elements sub tab.
- Click Add A Gadget link below the header.
- Scroll down the Add A Gadget window and select HTML/Javascript.
- Leave the title box empty.
- Copy and paste the HTML code below into the content box.
<!-- Navigation tabs start --> <div id='navibar'> <a href="YourLink1" class="navitabs" title="TooltipText1">ButtonText1</a> <a href="YourLink2" class="navitabs" title="TooltipText2">ButtonText2</a> <a href="YourLink3" class="navitabs" title="TooltipText3">ButtonText3</a> <a href="YourLink4" class="navitabs" title="TooltipText4">ButtonText4</a> <a href="YourLink5" class="navitabs" title="TooltipText5">ButtonText5</a> <div> <!-- Navigation tabs end -->
- Replace:
YourLink
with the URL of your destination page or site.
a) You can get the URL of a page by copying the content of your browser’s address/URL bar while you are on that page.
b) To show all posts under a label (category), you need to link to the label’s page. You can construct the URL to the page (i.e. label URL) by following the format below:http://YOURBLOGNAME.blogspot.com/search/label/YOURLABEL
c) For a multiple word label such as "YOUR LABEL", you need to replace the space between words with %20, like so:
YOUR%20LABEL
.d) And one more thing, labels are case sensitive.
TooltipText
with the text you want to appear when you hover the button.ButtonText
with the text you want show on each button.
- Click Save.
A functional navigation tabs, before styling
Step 3. Styling the links (turning them into tabs).
Go back to Dashboard > Design > Edit HTML. Find this line of code in your template:
]]></b:skin>
Copy the CSS code below and paste it immediately before (above) that line.
/* Navigation tabs start */ a.navitabs, a.navitabs:link, a.navitabs:visited {display:block; width:150px; height:25px; background:wheat; border:1px solid black; margin-top:2px; text-align:center; text-decoration:none; font-family:verdana, arial, sans-serif; font-size:12px; color:black; line-height:25px; overflow:hidden; float:left;} a.navitabs:hover {color:white; background:olive;} #navibar {width:760px; margin:0 auto;} /* Navigation tabs end */
The finished product |
Step 4. Customizing the tabs
- Change the colors, height etc. to suit your taste.
- You can add or reduce the number of tabs. Do it in Step 2, each line of code (line 3 to 7) corresponds to a tab.
- To change tab width, change the value in Step 3 line 1.
- Changing the number of tabs and/or tab width will make the bar off-centered. To keep it at the center, you will have to change the container width in Step 3 line 4. The width should be equal to the sum of all tab widths (including left and right margins).
- You can move the bar to the top of the header if you want,
- In Step 1 no. 3, inside the header widget, change
locked='true'
tolocked='false'
. - Drag & drop the corresponding gadget in Page Elements page.
- In Step 1 no. 3, inside the header widget, change
Subscribe to our blog via email or RSS and Like our Facebook page to receive free future updates.
Enjoy!
383 comments to "Creating navigation or menu tabs in Blogger"
«Oldest ‹Older 201 – 383 of 383 Newer› Newest»Thank you!! I have absolutely no html/javascript experience, but I was able to get these just the way I wanted ... including the colors. If you are feeling really generous (like over the top generous!), I would love to know how to add a little more space between my buttons and the start of my blog posts/sidebar.
Thanks again!
@Anita
Add "margin-bottom:10px;" in step 3 code line 2. Replace 10(px) with your value.
Thanks, i just put this on my blogger and it is perfect. Just what i hav ebeen looking for. And very easy and simple to do.
That was so helpful especially for a beginner like me. Thanks a million.
@Tracy888
My pleasure
I have added a menu bar to my blog but I don't know how to get my post to link to them. Can I publish posts then move them to the links?
Thanks a bunch
123comepartywithme@gmail.com, 123comepartywithme.blogspot.com
Couldn't do step 3 at all. The rest was fine, have to figure out the rest now. Thanks :)
@D
Yes, that's right.
But after seeing your blog, I think what you really want is to put label url behind those tabs.
For example your "Recipe" tab. If you use your post url/link then your blog will only show one post when you click the tab. What if you want to add more recipes?
This is where labels come in. Everytime you write a recipe, label the post "recipe" before publishing.
Then behind Recipe tab, use this link:
http://123comepartywithme.blogspot.com/search/label/recipe
when you click Recipe tab, all posts labelled "recipe" will be displayed (compared with just one post if you use post link).
@Pink Princess
What is the problem with step 3?
YOu are AWESOME! Thank you so much, I will get on and change this.
Thanks again!123comepartywithme.blogspot.com
Greenlava help... I can not figure out where to post the code you sent me, I had to re-figure my html code a bit to make it horizontal on my page and this is what it looks like.
I have tried to add the search/label/recipe after the html, also in between the >< and it just pasted the code to my page instead of a link.
I also made a new gadget to just start fresh and just use the code but it did the same thing.
Thanks so much for your help
123comepartywithme.blogspot.com
@D
The code (label url) should replace "YourLink" in step 2 no.5.
To post your code here (in comment form) you have to replace <> with [] or (), otherwise it won't show up.
ok thanks, I will try it again
Yahooo, It worked! Thanks again
123comepartywithme.blogpsot.com
@D
You're welcome
this really helped me, thanks so much for sharing.
BUT what i really am looking for is how to make the available tabs given by the template itself work.
what i hope to have is to have new pages. that when i click a tab, it goes to another page but instead of the homepage displaying, it will be lets say my friends or links...
do you have that here? ;)
@JENIE=)
Are you saying you want Pages to be styled differently than the usual homepage/ post page?
Try Apply different layout/styling to static pages
TY for all the info! Appreciate it.
It is useful for me
thanks
@Camel
@Mr Dhakal
My pleasure guys. Do come back.
Thank u sooooooooooooooooo much....^^
thnaks for your help
how do i change the color of the boxes...I can only change the font color. Also, to make more boxes fit on one line, is there a formula I can use to adjust the widths or do all the boxes stay the same size? Any help you give will be appreciated, thank you so much!
http://acpictureplace.blogspot.com
I have added the tab bar but when you click on the tabs, it says no post matches the query. 3 of my 5 tabs are the label type. these are the one's I'm having trouble with. One of them won't even go to the page. It says Internet cannot display the webpage. Any thoughts? Everything was great and easy to follow though! Thanks :)
@clauss house
You can the tab color in step 3 code line 2 and line 3 for hover (mouse rollover) color. Look for "background". The present colors are "wheat" and "olive". Use CSS Colorvalues.
To make more tabs fit -in your case try this:
Code in step 3 line 2 again, replace "width:50px;" with "padding-left:6px;padding-right:6px;". This code will size the tab according to text, with added padding.
@Julianne
1. bag tab -http://www.vibrantdesignsbyjulianne..blogspot.com/search/label/bag
double dots before "blogspost", that's causing "Internet cannot display the webpage".
2. As for "no post matches the query"
Have you labeled your posts with those labels?
Impressing, thanks for the free course :), I will try it into my blog : http://incomechannel.blogspot.com
cheers
#linkbar .widget { this code is not there in edit html! i want to start the menu bar on left side.
http://dealdytruths.blogspot.com/
please give me a solution soon!:)
hi mr Greenlava,
i want to put button for navigation tab not just the block..how should i do..http://lindabatik.blogspot.com/
@senthil
Where did you get that "#linkbar .widget" code?
@ahbat
You mean you want to use (button) images rather than the squares? Remember this code?
[a href="YourLink1" class="navitabs" title="TooltipText1"]ButtonText[/a]
just replace ButtonText with an image tag:
[img src="YOUR_BUTTON_URL"/]
making the whole code (of a tab) looks like this:
[a href="YourLink1" class="navitabs" title="TooltipText1"][img src="YOUR_BUTTON_URL"/]
[/a]
Thank you so much!!! It's exactly what I've been looking for. A couple of questions.
1. I have numbers around the top of my nav bar? How do I get rid of those? Is it possible to center the nav bar?
2. When I click on the "Home" button I created, is there a way for it to go to my blog home page or do I have to create a label "Home" (which I did to try it out). I would rather not have a "Home" label.
@Rambling Housewife
1. You copied the code direct from this page, that's why you have (line) numbers. You should've clicked the "<>" icon on top right corner of the code, and copy the code from a pop up window.
2. Your present Home tab code:
[a title="Home" class="navitabs" href="http://andonemoreequalsfour.blogspot.com/.html"]Home[/a]
change it to:
[a title="Home" class="navitabs" href="http://andonemoreequalsfour.blogspot.com/"]Home[/a]
replace [ and ] with < and >.
You ROCK!! Thank you so much smartypants:)
Okay, I did this, but...I had already tried to add pages with tabs on the home. Now, I have 2 sets of tabs, can you help. If I delete the pages, then my tabs have nothing to go to. If I don't, then I have 2 sets of tabs. Can you explain what I've done wrong? What I am trying to accomplish is: Tabs for certain pages - where I can link specific posts to that page: like this My Projects (on the tab) and then when ever I post details of my projects, someone could click on the My Projects button and see all of my projects there. Please advise, thankyou, Margaret
@Margaret, A.K.A. - 'Serenity'
A page is just like a SINGLE post. It is intended to be used for "About me", "Contact us" or the likes. You can't add posts to a page.
Maybe reply #205 helps.
thanks a lot mr Greenlava....my blog looks better than before...you're really amazing people..
In my blog i don't have header only one picture is there in my theme so i designed one logo. now how i search that header code?
I managed to get the menu tabs up, but now what? How do I create/link a new page to it, so when someone clicks on that particular menu tab, they are taken to another page. Thanks!
@moviefridays
I see you did find the header code.
@Shakti
Replace "YourLink" with the URL to the page, as explained in step 2.6
Great post, is there a way to add a custom google search box to one of the tabs?
All is well except now my tabs are noticabley smaller, any help?
Cheers,
@Wayne
Add left and right paddings to the tabs.
In code line 2, add this:
padding:0px 15px;
@PSP
I see you have added the search box.
Anyway try replacing your existing CSS code (in step 3) with this one, preview and see if you like it:
/* Navigation tabs start */
a.navitabs, a.navitabs:link, a.navitabs:visited {display:block; width:150px; height:25px; background:#0000ff; border:1px solid black; text-align:center; text-decoration:none; font-family:verdana, arial, sans-serif; font-size:12px; color:white; line-height:25px; overflow:hidden; float:left;}
a.navitabs:hover {color:white; background:red;}
#navibar {width:960px; margin:0 auto;background-color:#0000ff;}
table.gsc-branding {display:none;}
.gsc-search-box {margin-bottom:0 !important;}
#cse{margin:3px 10px 0; display:inline-block;}
/* Navigation tabs end */
THANK YOU!
Thanks G! One last thing and then it'l be perfecto. How can i put a space (around 1cm) between the tabs?
Thanks again!
@Wayne
Just add 0.5cm left and right margins:
margin:0px 0.5cm;
Too good G! Again, nothing but thanks my friend.
Thank you so much! I have been attempting to add a Horizontal Tab Menu to my blog for several days, following this person's advice and that person's advice. It was all too confusing and not until I applied your method did I end up with a tab that I am pleased with! I'm your newest follower :)
I really wanted tabs for a while now! Thanks so much for this site and teaching us how! Everything is perfect, EXCEPT my two links on the right don't work (I have 8 total). The pages are linked correctly. The problem is that I can't click on them. PLEASE HELP! What am I doing wrong?
@Treasures from a Shoebox
Glad to be of help :)
@Nitner and Beckers
I couldn't detect any problem, I guess you must've fixed it.
I put your code in my blog. It looks and works well but the formatting falls apart when printed (piles up on the right side of the blog). Any ideas?
It's placed right after the last /head tag and a section of code that starts with a left carrot and includes the phrase:
body expr:class='"loading" + data:blog.mobileClass'>
@Nancy
A workaround -simply remove the bar when printing:
Create printer friendly blog pages
Wow. Thanks!
Thanks! How did you embed the search bar in the tabs?
@Juliet
Go here: Add Custom Search box in navigation/menu bar
OH MY GOSH!!!!!!!!
THIS HELPED ME SO MUCH!!!!!!
I CAN'T EVEN PUT IT ELOQUENTLY!!!!
THANK YOU!!!1
perfect....
can u make some video about this, i believe more people would like to view video with the sound explaining rather than article step by step.. :)
really cool!! thanks for the nice piece. I have used this in my blog-
http://as-m-going-on.blogspot.com/
Hello Greenlava, please help me---
i have created 2 navigation tabs and wrote the code like
/* Navigation tabs start */
a.navitabs, a.navitabs:link, a.navitabs:visited {display:TRANSPARENT; width:115PX; height:NONE; background:TRANSPARENT; border:NONE; margin-top:2PX; text-align:CENTER; text-decoration:none; font-family:verdana, arial, sans-serif; font-size:16px; color:#ffcc77; line-height:16px; overflow:NONE; float:left;}
a.navitabs:visited {color:#aa9988; background:TRANSPARENT;}
a.navitabs:hover {color:#ffeecc; background:TRANSPARENT;}
#navibar {width:760px; margin:0 auto;}
/* Navigation tabs end */
/* Navigation tabs start */
a.navitabs, a.navitabs:link, a.navitabs:visited {display:TRANSPARENT; width:30PX; height:NONE; background:TRANSPARENT; border:NONE; margin-top:2PX; text-align:CENTER; text-decoration:none; font-family:verdana, arial, sans-serif; font-size:16px; color:#ffcc77; line-height:16px; overflow:NONE; float:left;}
a.navitabs:visited {color:#aa9988; background:TRANSPARENT;}
a.navitabs:hover {color:#ffeecc; background:TRANSPARENT;}
#navibar {width:760px; margin:0 auto;}
/* Navigation tabs end */
please visit my blog and suggest me
http://nandamurisizzlers.blogspot.com/
@govinda
You need to differentiate between the two set of tabs.
Replace the SECOND one with this:
/* Navigation tabs 2 start */
#HTML3 a.navitabs, #HTML3 a.navitabs:link, #HTML3 a.navitabs:visited {display:TRANSPARENT; width:30PX; height:NONE; background:TRANSPARENT; border:NONE; margin-top:2PX; text-align:CENTER; text-decoration:none; font-family:verdana, arial, sans-serif; font-size:16px; color:#ffcc77; line-height:16px; overflow:NONE; float:left;}
#HTML3 a.navitabs:visited {color:#aa9988; background:TRANSPARENT;}
#HTML3 a.navitabs:hover {color:#ffeecc; background:TRANSPARENT;}
#HTML3 #navibar {width:760px; margin:0 auto;}
/* Navigation tabs end */
HI, your tips have been very helpful so far, and i am very new to this so any help is appreciated.
However I have labeled some of my posts as 'Book Review' so that they show under my Page 'Reviews', I used your tip of
"All you have to do is label each post (in post editor) with the word "fashion". Then, under "fashion" tab put the the link to that label: http://YourBlogName.blogspot.com/search/label/fashion"
and i now have a link under my review tab that when i click on it, then brings up all the posts labeled 'Book Review' and a grey box that says "Showing newest posts with label Book Review. Show older posts" which is what i want. How can i get it so that it automatically shows this box and my posts and not the link.
Any help would be much appreciated, i've already got a lot further with your help in 5 minutes than i did in 2 hours on the other help topics i tried last night. if you want to look at my blog to get a better idea of what i'm talking about the address is : http://beckysbarmybookblog.blogspot.com/
Thank you.
Thank you! I was able to set up some nice tabs in about 5 minutes! It's gonna make my blog much better! It actually looks like I know what I am doing! lol
@barmybex
This URL: http://beckysbarmybookblog.blogspot.com/search/label/Book%20Review is meant to be placed behind a tab, and not inside a page like what you did.
This tutorial will help you do that: Adding non-pages links to pages/PageList gadget.
good morning found this wonderful source as blogger was not alot of help. I have three problems. My tabs background color is shooting off to the right and looks sloppy.
and second, I read your post about label your post and than go to that page and link it, but I don't see where I put the link in? thirdly, I changed my layout and now I noticed my profile words are all messed up.
New blogger here so any help is appreciated, by blog is robynsstampinghood.blogspot.com
Thank you!
@Robyn Scherzer
1. For the tabs and profile, add this CSS code in your template:
#header-inner img {margin: 0 auto !important;}
#header-inner {text-align:center !important;}
.PageList {margin:0 auto !important;width:875px;}
.Profile img {margin-right:25px;}
2. To add a tab linking to your label page, refer to reply 263.
I made it in my site..
Thank you very much..
try to check it here http://www.agoodcatch.co.cc/
Thks for your guide but getting the Tabs done I can't link to individual post. At first it was ok, later on it went error.I hv message -
"The blog you were looking for was not found.
Return to blogger"
owuld appreciate your help/advice.
@shaefiqmok
Must've been a typo in your URL. But you seemed to have fixed it.
It seems like the current version of Blogger (Aug 23, 2010) has changed. The Page Element page does not give a html option anymore though the Design tab does. How can I locate the "contents" section to paste your code? Hope you can help me out.
@stefen
No, Blogger hasn't changed.
When you click the Add A Gadget link in Page Elements, a pop up appears. Select HTML/Javascript gadget. Then you'll see two text boxes -the top box is entitled "Title" and the bottom box is entitled "Content".
Paste your code from step 2 into that Content box.
I implemented the menu boxes without problem, however, how do I arrange the text in each box so the I have two lines of text. Example: Home made Soap (on first line in the box and Workshop in the second line in the box? I want to make it the same set-up for all 5 boxes.
@Do Your Inner Work
Use a line break [br/]. So instead of "Home made Soap Workshop", you should enter "Home made Soap[br/]Workshop"
hi! i've tried this out and it worked but when i clicked on the pagelink the nav tab doesn't appear on that page or even when going over to other posts. it only appears in the home page T__T
@haeki
What is your blog url?
Hi,
I totally unexperienced but your instructions are wonderful and I could make nearly everyhting. However, when I try to modify some details of my menu bar (color, border, margin...) nothing changes.
-> http://ol-training.blogspot.com/
Thanks for your help.
@Olympia
You want to add/edit the codes in Step 3 code line 2.
Hi , I want to create a scrollable box like "labels" box in your blog then just click to choose a lebel...
Please teach me how to create that kind of box...
Thank you very much
@momcuabong
There's a tutorial for that:
Create Dropdown menu for Labels widget
I like this. thank you very much
@Dar-us-Salam Publications
You're welcome....and Happy Eid.
I have a installed the navigation tab, please help me to how to link this tab to page not visible in my blog post
amalobagoconstruction@yahoo.com
@AMalobago
Go view the page. Whcile on the page, copy the URL from your browser's address bar.
Paste to replace "YourLink".
Hi there! I've installed the navigation bar on the top of my page > http://outeredgeproductions.blogspot.com/
The problem is I can't remove the space on the left of the home button, and the right of the navigation bar. I want there to be 0 space. How do I do this?
Thanks!
@Sam Jones
Add this CSS snippet in the custom CSS box.
.tabs-inner, .tabs-inner .section {padding: 0; margin: 0;}
Wow, you're brilliant! Thanks for that Greenlava!
One more question... How do I get the Email Subscription on the right to look uniform to the site? And not looking like it is now?
@Sam Jones
Where did you get that? I tell you that's surely not the best looking subcription box :)
I suggest you use Feedburner's own box.
Go to FeedBurner and click your feed title.
Then click Publicize > Email Subscriptions.
Under the code box there is a "Use as a widget in" dropdown menu. Select Blogger.
Click Go.
Thanks Greenlava!
Is there any way to remove the white horizontal line above my navigation menu?
@Sam Jones
Go back to custom CSS box and add this:
.tabs-inner .section:first-child {border-top:none;}
is there any interesting tab view than this?
@muhammademirhaiqal@gmail.com
To get the look of a default tab, you can use a LinkList gadget. Add it in Design > Page Elements, and then drag it to under the header.
great tutorial
very helpful
thank you so much
@Sayang Bunda
You're welcome. Terimakasih for leaving a comment.
So, I followed this tutorial and it worked great. See: bronxnewsnetwork.org. Now I'd like to add another line of tabs (not a drop down) below it. Ideally, these would have a different look - i.e. just text, no background color or boundaries, with the words (Education, Politics, etc.) separated by vertical lines. Any advice would be much appreciated. One more thing: I can't seem to line up the header with the first line of tabs. Any ideas?
Thanks - and thanks so much for running this v. helpful blog!
@James Fergusson
1. Add another HTML/Javascript gadget under the existing tabs. Use same code as step 5 except, this time change the div and class names and add the vertical lines:
[div id='2ndnavibar']
[a href="YourLink1" class="2ndnavitabs" title="TooltipText1">ButtonText1[/a] |
[a href="YourLink2" class="2ndnavitabs" title="TooltipText2">ButtonText2[/a] |
.....
[div]
if you want to center the text links, add this to step 3:
#2ndnavibar {text-align:center;}
2. You header width is 922px. To line up your tab, you need to set the actual bar and #navibar to the same length. If you find that impossible, just make sure the bar is smaller than the header. Then match #navibar width to that of the bar's.
thanks bosch servisi istanbul
Superb! I am happy with the results. Thank you so much :)
Thanks GL. Both navigation bars are in place. Just noticed something though. In Fixfox everything looks great, but in Internet Explorer 8 (and other IEs I think) there's a big gap between the two bars. Any ideas how to fix this? Thanks a lot. My blog is bronxnewsnetwork.org.
@James Fergusson
Looks fine from here (IE8/Windows 7).
Looks okay on Browsershots.org too:
http://browsershots.org/screenshots/458bc17fce96e26c24bddc381c2a5fb8
Thanks for checking it out and for the Browsershots link. Yes, it looks fine to me now. Not sure what happened there. Strange.
In some browsers, though, it's still playing up. See the screenshot in this post: http://seeclickfix.blogspot.com/2010/11/bronx-news-network-integrates-with.html
@James Fergusson
Try replacing this:
#navibar {width:927px; padding-bottom: 18px; margin:0 auto 10px;}
with this:
#navibar {width:927px; height: 18px; margin:0 auto 10px;}
Very helpful!
Good job.
It's not working...i'm trying to get another menu under my first one but they stand on top of my first menu and it's not appealing..
Hi!
Please tell me how to allign navigation bar at left.
Visit, http://naturenpeople.blogspot.com/
Thanks in advance
Please tell me how to reduce space between blog title and blog description when simple template in used.
I must be the only one... Where exactly do I paste this code? I know you said "or something similar" but there are a lot of "similar" spots in my HTML and I'm not sure which spot is the right spot :(
Ignore my previous post... I was looking at the "add gadget" instructions! D'oh!
@Sachin
1. To align navigation bar to the left remove margin:0 auto; in step 3 code line 4.
2. To reduce space between blog title and blog description, add this is CSS:
.Header h1 {margin-bottom:0;}
.Header .description {margin-top:0;}
Hi - I am trying to use this code but I think that perhaps I may have manipulated my existing code to the point where I cannot even find [div id='header-wrapper'] to even add the code you have given. What can I do? Help! Here's my blog:
http://fearlesslyjustme.blogspot.com/
Thanks in advance!
Thank you very much.
It is very helpful.
@Marcy
I believe your template (Template Designer's right?) has an Add A Gadget under the header by default.
You can skip step 1.
Oor if you want to keep your template's native tab styling, choose a LinkList gadget in step 2 (instead of HTML/Javascript gadget). If you so choose a LinkList, steps 3 and 4 won't be needed.
Thanks. I think that worked.
James Fergusson
i can't thank you enough for this tutorial!! THANK YOU!! one question though...how do i choose a specific color? i've changed the html to gray and it goes gray but is there a way to choose a specific shade of gray?
alittlelovelyblog.blogspot.com
@a little lovely
Use color code instead of color name.
There's a free tool that picks color code right off your computer screen. Read 10 tools to help you develop a better blog. It's tool no.7.
Hi Greenlava,
I've copied the codes you mentioned and got the menu bar up. But it's not align to the header. It looks like there's left and right margin to the bar. Tried changing the width but it just spill into the next line. I tried to read through your replies above but still don't quite understand.
Really appreciate your help.
This tutorial was exactly what I was looking for, thank you so much for the the great details.
I'm struggling through with how to have the menu tabs go on the right side rather than the left. The two tabs I created are Home and About (may add one more later) I have more room across the other side and it doesn't distract from my blog header. Can you suggest what changes to make?
THank so much!!
http://simplicityphotogallery.blogspot.com/
@Michelle
Try this:
In step 3 code line 2, change float:left; to float:right;
BTW I could not view your blog because it is set to private, so I'm not 110% it will work :)
thnaks for this info I love all only problem How I can get space between tabs
http://savingandmakingmoneyinweb.blogspot.com/
@Blogmakesmoney
Add left and right margins declarations to the tabs (in code line 2), like so:
margin-left:5px; margin-right:5px;
Hey, I can't get Step 3 to work :( I paste it in before ]]> and nothing happens :( The style hasn't changed... Please take a look at my blog, and any help would be appreciated! http://macminitech.blogspot.com/
You left out a closing curly bracket, here:
.titlewrapper, .descriptionwrapper {
position: relative;
left: 50px;
top: 15px;
#navbar { display: none; }
/* Navigation tabs start */
You need to insert a closing curly bracket right before #navbar... line, like this:
.titlewrapper, .descriptionwrapper {
position: relative;
left: 50px;
top: 15px;
}
#navbar { display: none; }
/* Navigation tabs start */
Wow, who would have thought that one little thing would make such a difference! Thank you for your help! :)
helped a lot! thanks!!!
Hello
I cant pull any of my posts under tabs I created. How do you link the post to navigational tab. Please help me as I am new to this.
@The Place To Be For....
For the posts to show up, you need to label them first. Read How do I label my posts? - Blogger Help.
really it's great work
ty
hey ..
this is sadia .. i m having prob with the navi bars .. with every bar its number is writen from 1 to the last bar .. how can i remove that numbers ??
@sadia frozen
Where is this navi bar of yours? I dont't see any in your blog.
I did it! I was up all night last night trying to figure out how to do this and I finally stumbled upon this tutorial. Thanks for making it easy to understand. I'm still going to tweak it but I'm glad it's up. Thank you so much!
greenlava.
instead of having the display as block, what other options are there?
@Anonymous
Refer to w3schools for a list of "display" values.
Hi i was wondering how i could have tabs that could lead to another page within my blog?
@BEAUTY SO FLY
Just replace "YourLink" with the URL of the page.
Thanks..love your tutorial.. keep posting! :)
I have been overhauling a friends blogger site all day and she wanted cute tabs that matched her layout. This was a life saver! (and i figured out the images all on my own yay)
Thank you so much for posting this.
Help. I pasted code as directed, but I don't get any tabs with my newly created links as instructed on your page. I have the words, but now color and "tabs."
http://www.homesteadbountyblessings.com
@Homestead Mom
You've made a mistake pasting the tabs CSS code before the existing CSS declaration's closing bracket.
You want to replace this:
.Header {
text-align: center;
/* Navigation tabs start */
a.navitabs, a.navitabs:link, a.navitabs:visited {display:block; width:150px; height:25px; background:wheat; border:1px solid black; margin-top:2px; text-align:center; text-decoration:none; font-family:verdana, arial, sans-serif; font-size:12px; color:black; line-height:25px; overflow:hidden; float:left;}
a.navitabs:hover {color:white; background:olive;}
a.navitabs:active {color:white; background:indianred;}
/* Navigation tabs end */
}
with this:
.Header {
text-align: center;
}
/* Navigation tabs start */
a.navitabs, a.navitabs:link, a.navitabs:visited {display:block; width:150px; height:25px; background:wheat; border:1px solid black; margin-top:2px; text-align:center; text-decoration:none; font-family:verdana, arial, sans-serif; font-size:12px; color:black; line-height:25px; overflow:hidden; float:left;}
a.navitabs:hover {color:white; background:olive;}
a.navitabs:active {color:white; background:indianred;}
/* Navigation tabs end */
Thank you so much!!
Homestead MOM
Thank You!!!
This helped me do exactly what I wanted to!
I'm using this for my blog but there is a wide gap between my first button and the second. Any suggestions on how to fix this?
Here the blog site: http://designerdoggy.blogspot.com/
@Write2Write
The gap is due to the tabs being fixed widthed.
To make the widths follow text lengths, replace:
width:145px;
with
padding:0 15px;
Wonderfull, your tutorial is excellent, thank for you help. Very, very helpful
I use the simple template on blogger. I did not need to "add a gadget" under my header as there was one already there. I added the code to make the nav bar = perfect. The code to style them does not work for me though. I added the code directly above the }]]>
I notice yours does not have this } on it and mine does, could this be the problem?
Thanks
Hi. I think an example would best explain my question. Say you have a craft blog and you blog about multiple types of crafts: sewing, paper crafts, knitting, clay, etc. So now you have a tab called "crafts." How do you make it so that when you click on the "crafts" tab, it opens to your crafts page, and each type of craft has it's own section within the "crafts" page? So that if you wanted to look at all clay crafts, you would click on the "crafts" tab, and then you could click on "Clay" within that page, and it would open up to a page with all clay projects? I haven't set up tabs on my blog yet, so there isn't much to look at, but just in case you need the info, the URL is www.bananaandbug.com. Thanks in advance. Your tutorial seems pretty easy to follow...
@Poetic Justice
That's exactly the problem. You should paste the navigation code after the }.
@Amanda
This is not exactly what you want but it's the closest thing -a dropdown menu. Make sure you
1. Label clay posts under both "crafts" and "clay".
2. In the dropdown menu code, put "clay" on the second level, under "crafts".
tanks for posting this!! big hepl..tanks agen!!
Thank you so, so much! This is EXACTLY what I was looking for and you explained it so clearly! :)
Thanks a bunch Greenlava, worked like a charm!
Thanx for your info, problem with mine.I can't trace the mistake at all. I read text at the top in my Design view, no menu bar...
@1st in Prperty
Make sure you paste the CSS code in step 3 at the right place.
Hello!
Thank you so much! This is really the icing on my website!!!!! Looked for this for ages, and now I can save me lots of money on not hiring a webdesigner.
But one question, how do I remove the "Newest posts with label blabla"?
I think it looks a bit unprofessional.
@Verona
"a bit unprofessional" is an understatement, it's ugly :)
Hurry! hide it by adding this snippet in CSS:
.status-msg-wrap {display:none;}
hi green lava! i was thinking if this is off the topic, but i think it's still is..
because its the same as navigational tab..its just that its not located at the header. sir i would like to ask if how can i add like "terms and conditions", "about us" or such "tabs" if thats the ryt term for it at the verry bottom of my blog or footer? i've read all of your post but it wasn't discusd. pls. pls, if it's not too much favor to ask, can you please teach us how.. pls??? my super hero green lava!!☺
@mikiboto ♂ ( Mitch Dolar )
Go to Design > Page Elements and drag the Pages gadget box to the footer.
haha thank you so much!
When I click on the menu tabs, the first two don't show all the post on the 1st page. Is there a way why this is? Or how to fix it? If i press older posts, there show up more articles.
thanks for info
how do u change the font on the button?
@jackii
Step 3 code line 2:
font-family:verdana, arial, sans-serif;
change verdana to your first choice font, arial with your second choice,...
LOVE how easy this is, the steps are great! The only problem I'm having is when I try to change my background color of my tabs as they are scrolled over. For some reason when I switch from the colorname to a hex color it just goes to white....
I was able to create my tabs and customize them fairly easily... but do you know how to link the archive gadget to a tab? I don't want that on my sidebar anymore- but I can't figure out how to connect it to a tab...
Thanks,
Anna
@Shannon Edwards
The colox hex code requires a hash prefix:
background:118899 --> background:#118899
for part 3, how do i construct the url so that the posts are not visible on my actual blog?
@Maria N
Is this for the About, Contact and Shop tabs?
What you want is to replace the posts with stand-alone pages.
1. Go to Dashboard > New Post > Edit Pages > New Page.
2. Once the page is saved you will be prompted "How would you like the Pages Gadget to appear?" Select "Blog tabs" and Save.
3. View your blog to see the added tabs.
i made it through the tutorial and have the buttons now how do i name them and add text to them
@Mistress Patron
It is explained in Step 2.6.
Thank you for this Posting!
Very helpful to me!
this is a great post and helped me alot...thanx
Hi..this is what I have been wanting to put in my blog..I hope I will be able to do it..am not very familiar with codes, but I'll try.thanks
I am so grateful for your help! Being a complete computer idiot, you are an asset! Given that - I have a question! =) I've added everything, and when I did, it jacked up the way the blog looks in IE. It looks great (with the full navigation tabs installed) in FF, but it's ruined in IE. If I move the buttons back to the sidebar and remove the html (which makes them not work, obviously), the blog looks good in both IE and FF...but I'd like operational buttons. I've been going back and forth on this IE/FF mess forever trying to make it work...and like I mentioned, I'm a computer idiot! Any ideas? Thank you soooo much!!!
Maybe if I can style them to be stacked on the side? Maybe then they would work in IE and FF? I have no idea...obviously. =) lol
@Kristen
Why don't you try a LinkList method, as explained in the update.
thank you so much for helping me clean up my navigation bar! I just wrote a post about your site
http://www.storybeader.com/2011/06/thank-you-blogger-sentral.html
{:-Deb
@storybeader
Wow! Thank you very much. I really appreciate that :)
I've managed to create a horizontal navigation bar by following your very good instructions (I had tried others without success). However, I have two problems:
1. I'm trying to get the whole navigation bar to justify left but I can't see where to change the code.
2. I'm trying to use PT Sans Caption for the text, but the only code I see relating to font asks for a font family and it doesn't work when I insert (PT Sans Caption) instead of (Arial, Tahoma, Helvetica, FreeSans, sans-serif;) after (font-family:). How can I get PT Sans Caption to show?
@travel8ing
1. To align the whole bar to the left, try replacing margin:0 auto; in step 3 code line 4 with float:left;.
2. PT Sans is a web font, so applying it is not that simple. Try this method: Using custom/nonstandard fonts with Google font API
I'm in the process of creating a new website using blogger and found this information very useful. Is there a similar easy way to add sub menu too? If yes, how and if not, how to add sub menu in blogger.
@Anuradha Ramkumar
Adding submenus is not that easy. Try this tutorial:
Installing a multi level CSS dropdown menu
HI, is there nay way to move old posts from blogger into new created tabs. I have almost 400 posts and It would take a long time to do it one by one.
Thnx
@Health Shelf
Have you checked out this tutorial?
Listing post titles in alphabetical or chronological order
thank you so much! Out of ALL the tutorials I tried before I found your site, I could NOT figure it out!! And now I did THANK YOU!
Hey GreenLava,
How do you change the widths of the individual tabs themselves? I have one that says Home and another that says Discussion and I would like them to have different widths. Also, how to you change background color to a color that isn't a default color (I need a lighter, less bright color than default blue)
@Nikki Thareja
1. Tab width: Use padding instead of fixed width.
Replace width:150px; in step 3 code line 2 with padding: 0 20px;.
2. To change the back ground color, add background: #7777BB; to that line.
Replace the color code with your own.
Comments on this post are closed.