66 Create navigation buttons to enhance your blog
October 26, 2007 /

Many blogs and websites feature "navigation button" links like a menu at the top of the page or beneath the header. This can be really helpful for readers to navigate to areas of interest in your blog, such as the home page, about page and contact links.

In this tutorial, I'll explain a very simple (but effective) method of creating such a "navigation buttons" for your own blog, which you can use to add easily accessible links to your post pages.

Here is an example of the buttons you can create using this tutorial (though the links in these buttons all point back to this page!):

HomeAboutContact

To create these buttons for your blog, we don't need to use any external images! With a little CSS styling, you can easily create navigation buttons which change color when your mouse hovers over them, making it easier to see that these are indeed clickable links. This style of button is helpful to your visitors and invites them to view the important pages you link to using these links.

There are two main steps to creating these buttons for your blog:

  1. Add some styling code to your blog's template
  2. Create a new HTML/Javascript widget, and create your links

You can use these links anywhere in your blog that you are able to place an HTML/Javascript widget, such as your sidebar, the header section, or above your blog posts.

Here are the steps in detail:

Add some code to the style section of your blog template

The "style" section of "layouts" blogs is contained between the <b:skin> and </b:skin> tags in your template. The simplest way to add extra styling code is to place this just after the closing </b:skin> tag (key CTRL+F to easily find this in your template).

The styling code used for the buttons featured above is as follows:

a.navigation {
background: #000000;
color: #ffffff;
margin: 1px;
padding: 5px 35px 5px 5px;
border-width: 0;
text-transform: uppercase;
text-decoration: none;
font-weight: bold;
}
a.navigation:hover {
background: #5d5d54;
text-decoration: none;
}

If you copy and paste this code just before the closing </b:skin> tag in your blog template, you will easily be able to create your navigation buttons. If you prefer, you can change the color of the backgrounds (highlighted in red) to colors which better suit your blog. You can easily find the hex values for the colors you need by using the Color Calculator in the tools section of this site.

You will notice that there are two statements in this styling: the first defines what the buttons will look like as they appear in your blog, while the second (hover) statement defines the background color of the button when you place your cursor over the button (the "mouseover" effect).

Create your links in an HTML/Javascript widget

Once you have added this style code to your template, you should save your template and go to the layouts section of your blog (Template>Layout). Here you should create a new HTML/Javascript widget where you would like your buttons to appear.

In this new widget, you should add your links in the following format:

<a class="navigation" href="http://your-link-url.blogspot.com">Your link</a>
<a class="navigation" href="http://your-link-url.blogspot.com">Your second link</a>
<a class="navigation" href="http://your-link-url.blogspot.com">Your third link</a>

Be sure to replace "http://your-link-url.blogspot.com" with the URL of the post page (or link) you would like the button to link to, and replace the link text (eg: Your Link) with the text you would like to display.

Once you have created your links (you can add as few or as many as you like), save your HTML/Javascript widget, and take a look at the effect in your blog.

How this works

The styling code we add to the template creates styling rules for "anchor links" which are given the class of "navigation". We can use different "classes" to create different effects for elements which appear in your blog layout; the class we give for the navigation links does not affect other links in your template, only those which have the class of "navigation".

With a few tweaks, you can change the style of these buttons to completely blend with the overall appearance of your blog template, and create attractive clickable buttons to your important pages which your visitors will love.

Technorati Tags: | | | | | |

66 Comments:

13 January 2008 22:03 Capturing Today said...

Thank you, thank you! I have looked everywhere for information this well written and with such easy to follow instructions - that worked the first time I tried it! Thanks again for great tips!

15 March 2008 11:05 Lordvader said...

Thanks, noe y have nav buttons on my blog :-)

25 March 2008 14:01 Kris said...

This looks like it would be neat. I'd love to use it to help readers navigate to certain posts in the sidebar. Unfortunately, those don't have URLs (you can't click on the headline).

Does that mean it's not possible to use nav buttons to send people to those parts of the blog?

Thanks!

26 March 2008 11:00 Amanda said...

For Kris: That's a tricky one... It may be possible to use links which would scroll to the part of the page where the posts appear. But unless these posts could have their own URL, it wouldn't be possible to send visitors to these different posts.

2 April 2008 11:09 free for all said...

thank u very much very easy to apply

23 April 2008 13:20 rocky rocks said...

Hi amanda..nice tuts.. :D

Is there any way to use flash buttons..those would look really nice.. :P

hope there is.. :D

30 April 2008 15:14
Anonymous said...

Hi Amanda,

I have been creating my new blog for a while and your page has proved absolutely invaluable, so thanks!

Is there a way to use these navigation buttons to link to LABELS made in posts, eg: Art, Architechture, Fashion?

Thanks for your help,

John

3 May 2008 08:02 primrose said...

it's not working...=(
and how can i make my own template??
i just can't do anything to improve my blog.. can you help me??

14 May 2008 23:58
Anonymous said...

If you have, say 6 links, is there a way to have two rows of links?

8 July 2008 21:38 NPS Alternative Education said...

How do I put the buttons going across and underneath the title?

22 July 2008 14:51 Hilde Christina said...

All my navigations turn out in LARGE LETTERS.. Why? :'(

24 July 2008 17:07 A Lovely Thing said...

I'd like to have a red nav bar across the bottom of the header -- as well as another inside the header for "About Me" "Contact Me" "Shop My Store" very similar to yours as of July 24, 2008

HOWEVER, all my link styling is tied together -- navbar, sidebar, post links.

How do I separate those so that I can style each individually?

I tried taking the a: styling off the "body" section. Everything went wonky on the sidebar.

1 August 2008 11:03 Ankit said...
This post has been removed by the author.
1 August 2008 11:05 Ankit said...

Thanks....Great post !!

I want to add 2 columns at the end of my page to display

- Most Viewed Posts
- Recent Posts

How can I do so ?

4 August 2008 08:58 Ankit said...

I don't want default black background buttons.
I want to provide my own buttons.

How is this possible ?

18 September 2008 06:59 LadyinRed said...

Amanda, thanks heaps! Check out my testing blog and it's working, yay!

4 October 2008 08:49 Aasif said...

you are really doing a wonderful job. thanking u 4 ur wonderful service.

i am using blog since 6 moths but still i did not earn anything. can u help me on this purpose. Your suggestion will help me relly.
please if you can, mail me: mdyousufchy@gmail.com.

im looking forward to you...........tc

29 October 2008 01:33 Cherie said...

Can anyone tell me how to center the text within each button? Thanks so much!

3 November 2008 19:36 Jennifer said...

I found a website where you could put your own background, tables, etc. in the layout as a set. My question is, there is a little flower button that can be added,like instead of the B square button in blogs I'm following, whatever. How do I replace these with my own little image for a button? It may be easier for you to look @ it:

http://thoughtsfromthefrontporch.blogspot.com
Instead of the blogger button beside every blog I'm following, I have my own little flower that goes with my page set. I would like to use. I seen it done with cups of coffee, whatever to match the page.

Thanks, Jen

8 November 2008 05:10 festiva said...

Many Thanks Amanda!! You are the best in this field!! 2 pointers here:
1) The simplest way to add extra styling code is to place this just after the closing b:skin tag (key CTRL+F to easily find this in your template).-MISTYPED "after the closing". "just before the closing" is mentioned after the code box.

2) If you prefer, you can change the color of the backgrounds (highlighted in red) to colors which better suit your blog. -NOT HIGHLIGHTED.

Thank again for your marvellous blog.

Regards,
Shrek from MyBlogLog

10 November 2008 04:44 Crystal's Digipages said...

I tried to ask my question but it was referring to the "skin" part. It wouldn't let me type the code in my comment... anyways..

I am using the minima template. I have used the tutorials to add a 3rd column and a fixed background; and a background behind the content of the blog (text). Now I am trying to add the navigation buttons...

I followed the instructions and there are no buttons on my blog. There are the two links (I put two breaks between them) which work and they change color when you hover over them, but they do not have actual buttons.

I cannot find the opening "skin" code. I can find the "closing skin" code right after the footer information, but I can't find the opening skin code. So, I just pasted the above code underneath the closing skin. I don't know if that is the reason or not.

If you can please help me I would appreciate it! Thank you in advance.

12 November 2008 21:02 Digital My Ass said...

hi,

these are really great instructions. but my question would be, how i could use this navbar to create a section within my blog. like "home", "news", "music" etc. is it possible to make these sections appear like my blogs main page just empty until i post something in there?

thx

18 November 2008 03:16 Dinah said...

Thanks for the great and easy-to follow instructions. I am total dummy when it comes to designing my own blog but your tutorials are really very user friendly! Thanks a lot!

27 November 2008 16:55 Yvart said...

Is it just me? I can't seem to be able to do it! I'm using the minima template and I can't find the < /b:skin> tag.

I do see the < b:skin> tag which is near the top and I see the < /b:skin> which is near the bottom of my blog html. Is that it?

Where do I paste the code?

When I paste the code before the < /b:skin> tag, I click preview and I don't see it. But when I paste teh code after the < /b:skin> tag, after clicking preview I see the code at the top of my blog.

Am I just stupid? Cause I'm really bad at this kinda stuff. :) Help?

27 November 2008 16:59 Yvart said...

Is it just me? I can't seem to do it!

The only < /b:skin> tag I see is somewhere near the bottom of my html. I use the minima template, by the way. The < /b:skin> tag is far away from the < b:skin> tag, which is near the top of the html.

Is it the right one?

If it is then here's another problem.

When I paste the code before the < /b:skin> tag, and I click preview, I don't see it in my blog. And when I paste is right after the < /b:skin> tag and click preview, I see the code right above my blog!

Help! I'm bad at this!

4 December 2008 16:02 c'eSt la vie said...

how to do thiS in floating style?

my bloG:
http://databis.blogspot.com/

14 December 2008 08:33 Isa said...

hey! I've been looking for this for AGES... thanx a lot----
I do have a question though... is there any tutorial about how to put these tags on a navigation bar right beneath (or next to) the header? I would like it to look pretty much like that widget u made showing side by side tags for recent posts/comments and favorites----
thanx again!! hope u read this :)

14 December 2008 19:00 Isa said...

i got the same trouble as Yvart

21 January 2009 01:17 lovelyti said...

thank you so much amanda i have been looking all over for this tip, everything worked out perfect i changed the colors around, thank you again you have a wonderful site with lot's of great info!!
ti

21 January 2009 17:20 One Creative Queen said...

I just have trouble. Period. lol First of all, thank you for all these incredible tutorials - you are incredibly awesome for taking the time to do all this!! I'm sending major karmic love your way. :)

Secondly, I've done exactly what you've said...and I don't have "tabs", per se. Mine just show up as little words in my side bar. ??? Ok, I can deal - but what I'm trying to do is provide a link for someone to contact me. Email me. And everything I try doesn't work. I just want to make a button users can click on to email me at gmail. Can you please help me? Since I have enough kids, I'll name my next cat after you. I swear.

Or I'll put you in my will. You can have my Tupperware collection. lol Just help me, please - I've been trying for over a month to do this.

Thanks a ton,
Katherine

1 February 2009 21:08
Karl said...

Hi Amanda

Great tutorial it worked really well
But I was just wondering hw you got the navigation buttons to go onto the red line on the header

23 February 2009 00:56 Cameron*KillaCrossova*Sadler said...

same trouble as Isa and yvart

4 March 2009 18:02 Kishor said...

Thank you Amanda. This tutorial is well designed. I got myself something I was looking for. I got the navigation buttons was looking for. It is working well too.

21 March 2009 16:46 Chris said...

I created a linklist for a navigation and then styled it to my liking.

Here's a link to my test site --
http://godcenteredtest.blogspot.com/

26 March 2009 11:58 xrysa said...

I think you are going to be my best friend... I am joking.... I have a question like the one Kris had... I have thought to use links for two or three different blogpages I want to create and relate as well but some of the buttons I want to make I think it would be better to have particular posts as a target. I think I want to link them to labels of my posts... if it works in any way! I haven't experimment on that yet... Do you think you could help me on this?
THANK YOU ANYWAY!

4 April 2009 09:31 Only Messages said...

Thanks for nice sharing. It is very helpful me. Again Thanks.

21 April 2009 00:22 babyrocasmama said...

I made this nav bar. Thank you. It was fairly simple. However, why does the font or size/color of the font on the nav bar change when you change the font size/color for your blog? Can't this be made independent?

17 May 2009 14:20 Nick said...

Hi....where do I find the style section...or where do i find the layout?

25 May 2009 16:54 Emilie said...

how do i remove the date of the post?
it links to the post that i want it to link..but the date stays there...any idea how to remove it? because i want it to look like shop and not have dates and all..

29 May 2009 12:45 Anuz said...

Thank You! Very much! It worked in first Try!!
Nice Job..

7 June 2009 07:03
Alex said...

Love everthing about your blog! Thanks. Brilliant. Most useful blog I've seen for a long time!

15 June 2009 12:31 Bilal Ahmad said...

Thank you.very nice informations

22 June 2009 21:07 Anja Atkinson said...

Thanks for you help. The best part of your wonderfully helpful blog is that you explain things clearly. Your blog is a special gem in a field of stones.

1 July 2009 13:34 Abigail Larson said...

Hey!
I've had an art blog for quite a while and recently used GoDaddy to make my own domain for an online portfolio. I wanted a navigation bar to link to my images, artist info, contact, etc. on a separate page. I got all of that down, but when I click on the links I made, it sends me to blogger's "this page doesn't exist" page. What am I doing wrong? How do I make pages branching off my website?

www.abigaillarson.com

4 July 2009 01:01 McLean VA Homes said...

This has been most helpful. Thank you for your time, and for sharing this.

12 July 2009 14:39 Adam J. Fein said...

Thank you for a great blog!

I followed your instructions and it works perfectly.

However, I can't get the blank space filled in with the menu color. IOW, the menu stops when I stop adding menu items instead of continuing to the right side of the page.

Is there any easy fix?

Here is my blog: http://www.drugchannels.net

Thanks in advance!

Adam

18 July 2009 16:42 Adam J. Fein said...

I answered my own question -- but I'm curious if it is correct. It works fine on windows computers but does not display correctly in mac.

I added the following line as the last item in my menu:

style="width: 357px; background-color: #445566;" class="navigation">&nbsp

where "357px" is the extra space that needed to be filled in with my menu background color (#445566).

On mac (both firefox and safari), the spacing is off so this blank item wraps to the next line.

Any thoughts?

24 July 2009 03:28 Dave(Digital Scurge) said...

Now thats what i needed to know...You have helped me out bunches.....And another thing,you have a kick butt website...
Keep up good work,,i'll be watching

14 August 2009 09:44 ClickLiving Marketing said...

I used this one on my site http://www.mzansitoday.co.za and it worked perfectly. Visitors told me that it is now easier to navigate my site...great stuff

20 August 2009 14:28 Wasim Mughal said...

Hi Amanda!

I admitted your neat tip and succeed.

But here I faced a problem!

I was using IE, I could not see the Navigation Buttons, I tried the latest IE version but failed again, then I installed AVANT Browser but here that trouble was waiting for me too!

Atleast I installed Mozilla FireFox 3 and WOW i could see the Navigation Buttons!

This all things I thought that should be acknowledged to you, so whenever someone ask you about this problem then instruct them to change their Browser.

Thanx for the TIP!

Lastly I have a question here!

You instructed the method to show the Navigation Buttons below the BLOG TITLE, but you didn't tell about the procedure to show these buttons above the BLOG TITLE!
I think (& suggest too) that EDIT your ARTICLE and include the complete procedure for placing the Buttons at appropriate places!

Thanx again and Regard for you Effort (Infact the Great Effort)!

29 August 2009 19:14 Forever Blue said...

Hello thanks for the tuto; however after having changed it all i have an error message in the page elements if i want to add widgets or reorganise things on the page. the template is not recognized and this message appears
"Invalid data reference post.dateHeader: com.google.layouts.framework.widgetview.GoogleMarkupException: No dictionary named: 'post' in: ['blog']"

7 September 2009 15:02 Amatay said...

I am having the same problems as Yvart & Isa aswell :-(

Need help pls, ty

9 September 2009 20:55 Marianne@Songbirdisnesting said...

Hi, thanks for this tutorial. I got the buttons up just fine and edited them. I then went on to make static pages, as in backdated blogposts. However when I enter the link to said blogposts in the HTML Java script I get the error code that the page does not exist. I checked and doublechecked the link is correct and works when entered directly into an address bar. I linked to my homepage (link ending in .com) and that works, but all the links ending in .html do not work.
Can you help out, please???

2 October 2009 23:41 Rdekko said...

you are the perfect person for me! Thanks!

4 October 2009 17:15 Dragon90236 said...

alright you help alot

22 October 2009 03:28 Mari said...

For those like Yvart, i was having the same problem, till i realized i had been putting the given code in the #footer{}. Do make sure the footer is closed! It means, that u paste the code after the } is closed.

23 October 2009 15:20 Rachel said...

Thanks for the post! I've added the buttons to my blog and it all works fine. I do have one question though. I've currently added the HTML/JAVA widget above my BLOGS widget. I would however would like to have the HTML/JAVA widget directly underneath my HEADER widget. Is there any way I can get it there? I've tried dragging and dropping, but it doesn't work. I'm using a hacked Minima template. You can view my blog here http://tjongolongo.blogspot.com
I hope you'll be able to help me with this!

15 November 2009 20:38 Candice said...

thanks for the post! the tabs show up on my blog but, I am only able to link each tab to one post. How can I make more than one post show up when someone clicks on a particular tab?

I tried inserted multiple URL's separated by commas but, I get an error message. Any help would be appreciated. Thanks!!

candice.selby@gmail.com

17 November 2009 06:23 ganool said...

nice info..
i'll try it..

29 December 2009 20:22 Anara said...

I have been looking at other blogger helpsites for months, and yours is by far the best! I had no trouble creating and editing my nav buttons, but I'd like to make nav widget look like yours, with a continuous bar of color going across the page instead of discrete buttons. I'd also like the first button to start to the far right instead of in the center. My blog is www.able2able.com and I am using stretch denim which has been expanded to 3 columns. Thanks!

31 December 2009 23:37 mejia.martha said...

To create a link to posts with certain labels you just type this:
http://your-blog-name.blogspot.com/search/label/name-of-label

I am not sure. But I think that that capitalization also matters depending on how you typed out your labels.

Hope this helps anyone.

1 January 2010 00:26 SyntheticElegance said...

Oh and for those you are wanting to center the text. Its better to change the padding to this:
padding: 5px 20px 5px 20px;

Hope this helps anyone. =]
Martha
http://www.mysyntheticelegance.blogspot.com

10 February 2010 00:49 Alt Mellom Himmel og Jord said...

I made this picture/graphic navigation buttons on my blogspot. My background graphic is not ready yet, but I love this navigation buttons I redigated in photoshop. And that now is on my blog.

Just come and watch my blog: http://nyttighjelp.blogspot.com/

Is there someone that have any idea on how I can get the picture to blink, or change colour when mouse move over the picture?

11 March 2010 05:19 Pharmajobsindia said...

dear friend iam one of the your feed burner subsriber.kingly guide me about cloud lable gadget like in your blog .
how to change my blogspot.com to .com. how much money i have to invest/year

how to change my blog archive like you

how to add recent post gadget

Post a Comment

Browse through the Archives

All existing posts are still available to view while I'm working on the site, albeit seen in a much simpler interface. Feel free to browse through the archives to find tutorials, templates and articles to help you build a better blog:

Blog Archive

© Blogger Buster 2010 Home | About | Contact | Hire Me