
In this Page Layout you can see where I have added the Menubar. The code of this section is highlighted in red:
<div id='header-wrapper'>
<b:section class='menubar' id='menubar' maxwidgets='1' showaddelement='yes'>
<b:widget id='LinkList2' locked='true' title='Menubar' type='LinkList'/>
</b:section>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='false' title='Beautiful Beta (Header)' type='Header'/>
</b:section>
</div>
To the CSS-part of your template, add coding for the menubar-id:
#menubar h2 {display:none;}
#menubar ul {
list-style: none;
}
#menubar li {
float: left;
}
#menubar a:link, #menubar a:visited, #menubar a:hover {
padding: 5px;
display: block;
color: $headerTextColor;
}
#menubar a:hover {
background-color: $headerCornersColor;
}
The menubar title is hidden, so that only the options are visible.
The list-elements are set to none, so that there are no bullets in front of the menu options. And if a menu-option is hovered over, it is highlighted.

This is what people say:
Hi !! u give me great help !
thanks !!
i do not understand the second part. from"To the Css-part of your template, add coding for the menubar-id:........."
where i can paste this code ???
can u plz help me ??
@anonymous: CSS means: cascading style sheet. That is the styling-code that tells your browser how to format the content (colors, margins, fonts, etc). This CSS is at the top of your template between the <style> and the </style> tags
thanks man........
i use it in my blog and it's great
i'm thinking using it in my other blogs :)
@Kelani: glad you like it!
can this be used in the blogger beta? i can't find < style >
@kakashi: yes it is for blogger beta. Add the CSS between the <skin>-tags.
Hi hans,
thanks for sharing such infos.
http://internetbazaar.blogspot.com
@lfc-fan: thanks!
How I can add this code so it shows after description
@George: move the menubar-section a few lines down, so that it is below the header-section.
I ment that like first comes description and then in same line comes menus like mailto etc....
@George: that would require some hacking. I guess the best way to do it would to delete the description from the blog, so that it doesn't show up in the header. Then, create a section with two widgets, one being a description-widget (a text-widget), the other being the menubar widget. If both have the same styling, they will look like one menubar, but only the menu items will be clickable.
As two "sticky messegeboards" with same css?
@George: Well, I guess it will be slightly different. The menubar has a class and an id. The menubar-widget is a List Page Element. Therefore, the css is defined for the a:link, a:visited, a:hover and so on from the #menubar. For your custom-made description you have to define a seperate class (e.g. .mydescription), and then give this class the same css as the menubar.
great hack..been using it for a couple of months. one problem is that it floats left when viewed in wider screen resos. Is there a way to get the whole widget to center. I've tried numerous hacks of both the css and widget code but can't seem to figure it out. any thoughts (changing the li css only changes the list to vertical rather than horizontal)
Hans, After adding the CSS part before the < / skin > tag, When I tried to save the changes got the following error:
"Invalid variable declaration in page skin: Variable is used but not defined. Input: headerTextColor"
Why it is so ? You can see my test blog Here.
@Duke: try adding an extra div-wrapper around the menubar, and give this wrapper a text-align:center deinition. That might do the trick.
@shrish: at the top of your blog template you find a list of variables for colors and fonts. These variables are used in the template, in stead of hard coded color values. Apparently you have used a variable called headerTextColor somewhere in your CSS, and you forgot to define it in the list of variables. Just copy one of the colordefinitions, paste it into the list, and change its name to headerTextColor. Save your template. Now you have access to this new color in the Fonts and Colors page of the template editor.
Hii,
How can i add this trick to New Blogger?
http://visitformoney.blogspot.com
@Lovely: this trick IS for new Blogger....
Hi Hans,
Thanks for t smart and easy to install info. I am trying to incorporate all hacks in my blog...hence I added ur code to my test blog. It is now below the header...which is wat i need. but, I have some css menu buttons from css tab designer 2.0, and i want to use them in the menu bar ....how can i do so?
Oh...my blog is here.. http://test-hacks.blogspot.com/
and i want to incorporate Tabs design J in my blog. How can I do that? And how to organize posts accordingly? Suppose I have a tab called india, and i want to list all the post tat is labeled 'india' to be under that tab, what shud i do?
Thanks for the info! I'd like to ask how you can add a menu that onmouseover of a menu link, it drops down to show a bunch of other links. Secondly, how do you make the links in the menu look like tabs, instead of just words?
thank you so much for this it is very useful.
hi Hans,
thank you very much for this very interesting tips. now i have a menu bar on top of my header but the problem is i cannot align my menu bar with the header box. th emenu bar slightly falls off further to the left and i could not see a hover color when i point the mouse on the menu.is there any thing i forgot to include? check my blog here http://guidetophilippines.blogspot.com
Hi! Okay...i added the menu bar, but it shows up even though I have not posted the CSS section anywhere in my blog. I can't seem to get it to work anywhere. Also, is there a way to make the menu bar horizontal instead of vertical, because right now it is vertical. Thanks so much!!
@Tester: the menubar's styling is done with the CSS. So if you want it horizontal, just like mine, add the CSS-code to the head-section of your blog template.
Hi!
I cant get this thought out how i can put it on left side totally samelevel wich my mainsite and header is!
http://subject-beta.blogspot.com/
hi.i have a question.i tried putting a menu bar in my blog but there is a pretty big space between the menubar and the header.how can i fix this?thank you beautifulbeta.this is where i learned how to edit the template.really good!
hi tried but it comes as problem:More than one widget was found with id: LinkList2. Widget IDs should be unique.
how do i solve tht...
send me by mail plz...
kavinrocky@gmail.com
Im referring to your answer to @Tester:
@Tester: the menubar's styling is done with the CSS. So if you want it horizontal, just like mine, add the CSS-code to the head-section of your blog template.
My Question:
Do you mean I need to add the CSS code to the head section instead to the style section?
Im sorry if my question sounds stupid coz im quite new tho all this codes and hack..But I hope you can guide me..
Hello Hans,
I worked the whole morning from time up to lunch.
I could not get the menu bar first time due to
headerColor _ _ , which I added in variables on top.
Next
xml parsing div not closed
Struggled with all the available css validators
Uploaded
retried third time
no error message but no
menu bar either.
You will see all properly added in view source. Yet it does not work there a hacker's brain is required.
Thank you.
Your suggestions please.
Dr. Ashok Koparday
milansamadhan.blogspot.com
I can regularly check mails at
ask[at]mydoctortells[dot]com
Hans, Great hacks. I loaded the menubar code and it's up there but as i add links, it pushes the title of my blog to the right. What have I done wrong?
Hi Hans!
First thank you for all your tips!
My question will maybe sound noob... but I really want to know how to personalise the tab of each menu and link them to my label list... or to something!
Can u help me?
K :)
hi Hans, great job, thank you! I am going to use it at my blog http://jc-resource.blogspot.com
Now I face a problem: how do get the pace in the menubar to have the same color than my BlogTitleBackgroundColor? and what do I do to have the links opened in a new window?
Hi, I tried many time to put the CSS code, but it come the message "Invalid variable declaration in page skin: Variable is used but not defined. Input: headerCornersColor". May I know how to solve it. Basically, I still not very clear where to put the CSS code, can make it clear, like after the what word...
sleep.........already.....???
can you fix my problem with your menubar? i tried to install it, and it is successfully to install.
but as you can see at my blog, the height of menubar is under-control and it is seem overflow.
can u fix it? please refer to my blog at scanlix.blogspot.com, and send the answer to my mail at saveav@gmail.com
thanks, hans! good job!
Hi Hans,
I've been having the same problems as other people at www.tinglingtastebuds.blogspot.com.I want the links to be beneath my banner, but they have pushed my banner to the right. Also, if I click on one of my links, such as contact, it goes to my post draft. Do I need to actually post my contact to allow the link to work properly? Thanks! My email is beankatina@gmail.com
PLEASE HELP!
Am helping my aunt do a blog for her orphanage and am having trouble! I've got the horizontal menu working, but it's pushed my header to the right.
Please help! How can I fix this?
Dodie
unfortunately not working here.
would appreciate it if you could contact me.
konstantrevolution@mail.com
regards
Grimm
Hi thank you so much, I was trying to find out this tip, because I've seen it on numerous site elsewhere, and now I used it in my blog: http://mehdi-mehdy.blogspot.com
Thanks very much for posting this!
visit my site .. it is having a more beautiful menu bar than this... if u want to know how i made it then tell me
http://need4software.blogspot.com
Hi. I've added the menu and it works expect that when my mouse rolls over it, everything on my blog moves up and to the left a little--its really annoying. Do you have any suggestions on how to fix this?
Also, there isn't a way to make more internal pages is there? If I wanted a link to an "Pictures" page, i would have to create a separate blog for that so that I could link to it?
If you can help me, it would be great. thanks.
I can't find the style tags on my blog. I don't think I am using Beta.
hi Hans,
thanks for the info,
ive done that just like you said, and ive got menubar on my dashboard too, but i didnt see it when i view my website.
is something wrong?
cheers,
delta
Thank you. It works great with my template (Son of Moto). You can see it at http://lilleskvat.blogspot.com/
i like thats
i have tried adding it, but XML is not parsed well error comes repeatedly. what have i done wrong?
http://www.praveenweb.blogspot.com
@praveen: you probably have missed a >-character or something when typing in the code.
Check carefully with the code displayed in this post.
First, THank you for this; I appreciate it.. I have the menue bar up although its showing up vertical and I'd like it Horizontal... plus I keep getting the error when I add the CSS code: Invalid variable declaration in page skin: Variable is used but not defined. Input: headerTextColor.
I read your old reply to shrish and went back to check my variables but do not see headerTextColor any where...what am I missing..? Thank you.
http://frontporchphotosblogaboutme.blogspot.com/
@Laura: to make your menubar horizontal you have to add the CSS code to the skin of the template. In the CSS I used the variables $headerTextColor and $headerCornersColor. Variables like these are defined near the top of the skin. You can choose from 3 options now:
1. Replace $headerTextColor and $headerCornersColor with hex-numbers (e.g. #000000 for black and #ffffff for white)
2. Replace $headerTextColor and $headerCornersColor with variablenames already used in your template (to stay withing the color-scheme)
3. Add definitions to the variables-part of the skin for $headerTextColor and $headerCornersColor (just copy-paste another variable and change its name)
So, where and how do you list the titles of the menu and their links? I may have missed it somehow... and what does the menu look like?
help!!! i put in the code as you said. i had an error like others had said and followed your advice to laura and replaced those two words with hex numbers taken from colours used on my blog. i previewed and nothing showed up?? no menu. what could i have done wrong
@amy: adding the code means that you have added a Link List Page Element to your blog. Adding the CSS means that you customize this link list in such a way that the links are from left to right (making a bar) and not top to bottom.
But don't forget that you have to put links in the Page Element. From the Layout-editor, open the Menubar Page Element, and add links to the blog pages that you want to be in your menubar.
hi all.but i cant see the menubar.
how can i make it visible?
good i have done this to my best site c here www.crackznhackz.blogspot.com
Thanks SO much for this. For some reason I'm unable to get it to appear horizontally, even with my CSS in there. Any ideas?
I can't wait to use this! But I can't get it to show in my layout so that i can add the links. Please help. pocketofrocks.blogspot.com
thank you! Brienna
Thank you so much for this widget! I just incorporated it into my blog after reading about it on BlogCoach. I think it looks great considering I'm no CSS expert!
http://georgietees.blogspot.com/
Thanks again!
Hi
I'm trying this out on a test blog before applying it to my other blog.
I'm downloading the basic Minima skin and doing the edits on that. However when I come to upload I get the following error message:
"Invalid variable declaration in page skin: Variable is used but not defined. Input: headerTextColor"
Any ideas?
Cheers
SKA
Cheers!
It didn't work at first but I put my mind to it and figured out what I was doing wrong. It works now. Thanks!
@ska[istivan]: Blogger templates can use variables for colors etc. See the Blogger Help. Check your template for a variables section, and add a definition for $headerTextColor there. Or replace $headerTextColor with a value for the color you want to use (HTML-colors, if you know what they are. E.g. #000000 is black, #FFFFFF is white, etc)
Dear Hans,
I'm currently working on a photo blog and have a very specific question. I have already searched the web extensively but haven't found my answer yet. Maybe you can help me or point me in the right direction.
In my blog I work with many thumbnails. When you click on the thumbnail you will see the enlarged photo in the left corner and with a white background color. My question is: can I change the background color and center the photo by changing the html code or is this always fixed by blogger? The background color of my blog is dark grey and because of design reasons I would like to have the same color thoughout the whole site in every window.
Thank you already for your time.
greetings,
Sjoerd
ps. Until now I have always used blogger to upload my photos to.
@Sjoerd: If you post your photos to Blogger, they are displayed as a "thumbnail" inside your post. By customizing the CSS of your template, you can define colors, position, etc., as you probably have discovered already.
If you click on the photo to display it full-size, you should realise that you are NOT opening a blogger HTML-page, but you are in fact downloading the picture-file (blabla.jpg for example) and viewing it in your browser. That is why the background is white. What might be useful to you is a Lightbox-script. Google it, there are plenty of those scripts available. If you use this kind of script, clicking the thumbnail will open an overlay that displays the photo full-size.
Hi, I have successfully set up the menubar, but am facing a strange problem. I want to remove any gap between the menubar and the header. Then, by inserting background pictures into both, I want to make it look as if the menubar is integrated into the header. The problem is, the moment I add the background picture to the header, a gap of about 15px appears. How do I get rid of this? (I may add, I'm a noob at HTML and CSS alike :P )
To get a better idea of the problem, you could take a look at my blog:
http://foodscapes.blogspot.com
Post was written clear and descriptive and will be useful for new bloggers.You can also use a table to create a menu bar of your choice.
www.techieway.blogspot.com
uff! after hours of trying and total frustration, I did it, but only after reading all the questions and answers..... now I have to figure out how to add the pages UGGG!
It is hard when you are NOT so savy.
Thank you for answering all those questions from others.
Awesome and i liked it...
I just added this onto my blog, but I have one question. How do I remove the big space between my header and this new menu bar? Thanks a lot!
I am getting an error message reading
The processing instruction target matching "[xX][mM][lL]" is not allowed. What does that mean? I am new to blogging and not sure what to do. Thanks,Amy
I tried posting the links in my template but I'm getting an error message.The processing instruction target matching "[xX][mM][lL]" is not allowed. What does this mean?
Share your thoughts!
Feel free to post your questions, remarks and comments here. Moderation is set for this blog, so your comments will appear in due time.
Look who's linking here!
0 Backlinks point here