Tutorials For Beginner

Saturday, November 8, 2008

Tutorial on Making Horizontal Navigation

Recently, Kang Rohman has got many questions on how to make navigation button, like HOME,, FREE TEMPLATE, ELECTRONIC RUBRIC, and as seen in below illustration:

navigation

Actually, I have explained about this topic. Please read my post about “Vertical-1 menu”, ”Make Drop down Menu With CSS”. You might be interested in one of navigation menu I have ever posted.

Some bloggers can’t find the articles about making navigation button but some can find it and have succeeded to make navigation button. However, when they were trying to insert the link address into the buttons, they could not do that. It means that Kang Rohman tutorial is not clear yet. That’s why in this post, I would like to explain more clearly and hopefully that you will understand.

One thing you should know that designing a template is very complex and different each others. So when reading my tricks, you should work harder to match with the template you are using.

Before making navigation button, there are some things that you should prepare; they are the keywords that you will insert on the buttons, example Kang Rohman decides to insert HOME,, FREE TEMPLATE, ELECTRONIC RUBRIC to be inserted in navigation button that Kang Rohman uses.

The other preparation is the links that you will use. The links can be blog address or others web, links to the blog posting or links to your own web, For example; because Kang Rohman has some blogs, then I want some blog navigation are inserted by the log links, example;

http://rubrik-elektronik.blogspot.com

http://blogtemplate4u.com

How about if the links are the blog links not links for others blog? Don’t worry because we still can do that, however there is one lack of blogger compared with WordPress, that is not be able to make Static page. What does Static page mean? Static page means that the page that doesn’t belong to the lines of posting page, example; about me in WordPress.

In blogger, we can not do that, if you want a page to have a link, then you should post it. So, please post the page you want to be linked. How can we know a link of a post? It’s easy. Just click the title of a post or click the Read more menu if you use Read more, then look at your address bar, that’s the link address of a posting, finally copy and paste it into the notepad. Sample of posting address:

http://www.blogspottutorial.com/2008/11/google-pages-google-page-creator-is.html

illustration:

post URL

URL

Beside the posting link address, you can also insert links for label or category. This function is very useful because when the navigation button is clicked; all posting will be shown in its category. Example, if a visitor clicks the navigation button, and then all posting in the category of free template will be opened:

http://www.blogspottutorial.com/search/label/free%20template

free template label

Link Lable

Ok, I consider that you have understood the first step. The next step is adding the code navigation into your template. Below is the navigation sample that Kang Rohman will explain, please see here.

Just remember that the template design between one templates with the others are different, so what I am going to explain might be different with your template. That’s why please use or make one blog as your experiment blog, so if you make mistakes or something wrong happens, it won’t damage your blog. Please choose the ordinary white minima template.

Well, Let’s start the experiment;

  1. Please Log in into blogger with your ID.
  2. Click Layout.
  3. Click Edit HTML Tabs.

    Edit HTML 

  4. Find the following Code ]]></b:skin>

  5. Copy paste the below code above ]]></b:skin>

    /*  navbar

    ==================  */

    #bg_nav {
        background: #000000;
        width: 660px;
        height: 29px;
        font-size: 11px;
        font-family: Arial, Tahoma, Verdana;
        color: #FFFFFF;
        font-weight: bold;
        margin: 0px auto 0px;
        padding: 0px;
        border-top: 1px solid #333333;
        border-bottom: 1px solid #333333;
        overflow: hidden;
        }
    #bg_nav a, #bg_nav a:visited {
        color: #FFFFFF;
        font-size: 11px;
        text-decoration: none;
        text-transform: uppercase;
        padding: 0px 0px 0px 3px;
        }
    #bg_nav a:hover {
        color: #FFFFFF;
        text-decoration: underline;
        padding: 0px 0px 0px 3px;
        }
    #navleft {
        width: 440px;
        float: left;
        margin: 0px;
        padding: 0px;
        }
    #navright {
        width: 200px;
        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: #222222;
        color: #FFFFFF;
        display: block;
        font-weight: bold;
        margin: 0px;
        padding: 8px 15px 8px 15px;
        border-left: 1px solid #000000
        }
    #nav a:hover {
        background: #6e6d6d;
        color: #FFFFFF;
        margin: 0px;
        padding: 8px 15px 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: #333333;
        width: 160px;
        float: none;
        margin: 0px;
        padding: 7px 30px 7px 10px;
        border-bottom: 1px solid #000000;
        border-left: 1px solid #000000;
        border-right: 1px solid #000000;
        }
    #nav li li a:hover, #nav li li a:active {
        background: #666666;
        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;
        }

  6. Drop your mouse down and find this code:

    <div id='header-wrapper'>
    <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
    <b:widget id='Header1' locked='true' title='test (Header)' type='Header'/>
    </b:section>
    </div>

  7. Copy and paste the following code below code above:

    <div id='bg_nav'>

    <div id='navleft'>
    <div id='nav'>
    <ul>
    <li><a href='http://www.blogspottutorial.com/'>home</a></li>
    <li><a href='http://www.kangrohman.com/'>My Notes</a></li>
    <li><a href='http://template-unik.blogspot.com/'>Free Template</a></li>
    <li><a href='http://rubrik-elektronik.blogspot.com/'>Electronic Rubric </a></li>
    </ul>
    </div>
    </div>

    <div id='navright'>

    <form action='http://YourBlogName.blogspot.com/search' id='searchform' method='get' name='searchform'>
    <input id='s' name='q' type='text' value=''/> <input id='searchsubmit' type='submit' value='Go'/> </form>

        </div>

    </div><!-- end bg_nav -->

  8. Click SAVE TEMPLATE.
  9. Finish.

 

Until this your experiment has done, however if you apply it in your template, you need to match a few things, such as; the width of the navigation, links, keywords and others. Some samples are as follow;

/*  navbar

==================  */

#bg_nav {
    background: #000000;
    width: 660px;
    height: 29px;
    font-size: 11px;
    font-family: Arial, Tahoma, Verdana;
    color: #FFFFFF;
    font-weight: bold;
    margin: 0px auto 0px;
    padding: 0px;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
    overflow: hidden;
    }

You have to change the width; 660px into the values which is suitable with your template; e.g. width: 990px.

 

#navleft {
    width: 440px;
    float: left;
    margin: 0px;
    padding: 0px;
    }
#navright {
   width: 200px;
    font-size: 11px;
    float: right;
    margin: 0px;
    padding: 6px 5px 0px 0px;
    }

This one is also the same; you need to change it with the value that is suitable with your template.

 

<li><a href='http://www.blogspottutorial.com/'>home</a></li>
<li><a href='http://www.kangrohman.com/'>My Notes</a></li>
<li><a href='http://template-unik.blogspot.com/'>Free Template</a></li>
<li><a href='http://rubrik-elektronik.blogspot.com/'>Electronic Rubric </a></li>

You have to change the available links with the links you want. For this matter or problem, I have explained above. Examples http://www.blogspotutorial.com is changes into http://example.blogspot.com. And the keyword can be changed as you want; example “home” becomes “Front Page”.

Have a nice work!!

Save and Share!

Stumble Digg Tweet Save Reddit More

23 Comments:

xXx on November 8, 2008 7:33 AM said...

Great Job!

Ches on November 9, 2008 10:17 AM said...

Mmmhhh very complicated Kang..

musik musisi on December 5, 2008 8:12 AM said...

I have to try, and succeed.
thanks

aaaaa said...

how if i want to add more buttons?

Fabulous Romeo on January 13, 2009 9:31 AM said...

please show us how to add additional buttons please!!!!

Mr N. K. Mule on February 7, 2009 5:43 PM said...

will you please help me out im not able to get menu as per your instruction

Joseph said...

l am always able to get menu. But i can't make posts appear on menu so that when menu is clicked you see the content posted there. For example i want menu containing the word REVIEW. How can i make this menu so that i can always post my reviews to the menu instead of posting to the main post area. your help will be appreciated. please you can also respond to me on my email: okwutte@yahoo.com

Relationship Dating Tips on March 8, 2009 7:11 PM said...

I wish to thank you from my heart for your great contribution to the world wide net you are definitely making your mark.Good job.

I having been following your steps and i have a very beautiful site now.Yet there is still a problem i will wish to ask.

How can i make my posts in the form of a list as you have on this site when one do a search for example on "making navigation".The result will be a list of post but on my site it will show the full posts.

You will see what i mean if you click relationship on the nav bar.

Thanks for all again for your help and kindness.

xuen adyla on April 17, 2009 4:49 PM said...

i have problem in doing this navbar

i use everything and it didnt work

i suspect that my code goes haywire

i was thinking to send my codes to u..

via email but im not sure how too.

if its okay with u..

my email is fairytopia_dreamland@yahoo.com

and my blog is http://cranberrylust.blogspot.com/

thanking u in advance

FION in the house on April 25, 2009 9:55 PM said...

Thanks for your sharing.

But how can i add on the drop down with categories?

Reza Winandar on April 30, 2009 6:33 PM said...

Thank you for the article!

precious on May 6, 2009 2:21 AM said...

perfect. thank you for this post

Kathy on May 13, 2009 4:24 AM said...

Awesome!! I didn't think it was complicated at all. I spent all day looking and trying to complete this using other instructions and your method only took me about 30 minutes, wow. Thanks so much.

jojo on July 14, 2009 10:57 PM said...

i already try but my navigation not horizontal but vertical.

i don;t, until right now i still try.

AviPro on July 25, 2009 8:26 PM said...

What about Classic Blogger Template, how to do this, and highlight tabs when another blog page is loaded?

Tim / Toronto

Kaspersky activation key on August 8, 2009 5:42 AM said...

Thank you for this

Trixi on August 28, 2009 1:46 PM said...

You forgot to mention, that it has also a second-level drop-down-menue as well. ^^
Thx for that tutorial.

The-OnlyFour on September 15, 2009 10:45 PM said...

When I change the original balck background colour to orange, only the right navigation bar changes. How do I change the left side also?

Mark on November 8, 2009 7:55 PM said...

Useful article, but for those who want more powerful jQuery multi level drop down horizontal navigation menu I suggest to visit this link.

Saranga Rathnayake on December 2, 2009 7:46 PM said...
This post has been removed by the author.
Anonymous said...

You can make your own one very easily,
Add Menu Bar To Blogger Blog

Saranga Rathnayake on December 2, 2009 7:49 PM said...

You can make your own Multi Level one very easily,
Add Menu Bar To Blogger Blog

Merliny on February 8, 2010 5:48 PM said...

Since a few days Blogger allows creating static pages too:
http://buzz.blogger.com/2010/02/create-pages-in-blogger.html


Post a Comment

Please comment in English.

Spam Comment will be delete!

 

Recent Comments