Saturday, 8 June 2013

How to Customize the Navigation Menu on Your Website with Dreamweaver CS5.5


by Christopher Heng, thesitewizard.com

If you were to observe the websites that you visit, you will notice that the majority of them sport a set of links that are common to all pages on their site. These links may sometimes look like buttons, and are usually placed either on the left column, the right column, along the top or at the bottom of a website. These links are usually called the navigation menu of a website. You will be customising ("customizing" if you use US English) your navigation menu in this chapter.

I should probably mention that if you have only just arrived at this article from outside thesitewizard.com, this is the 6th chapter of the Dreamweaver CS5.5 tutorial. Since I will assume that you already know what I've taught in the previous chapters, you may want to start with chapter 1 if you're new to Dreamweaver. Those who are complete newcomers to website creation will have an easier time if they start at the very beginning, with the article How to Make / Create Your Own Website: The Beginner's A-Z Guide.

By the end of this chapter, you will have modified your navigation menu so that they have buttons linking to the other important pages of your site. You will also have, optionally, changed the colours of the buttons so that they fit into the colour scheme of your site.

This chapter also discusses some ways in which you can deal with the unbalanced columns on your web page.

Before we continue, please take a look at the navigation menu in the left column of any page on thesitewizard.com. Don't be distracted by the fact that the buttons change colour when your mouse hovers over them. (Your menu buttons will work that way too.) The thing I actually want to draw your attention to is the types of links I placed in that menu. Notice that the buttons only link to the main sections of thesitewizard.com, as well as to a very few pages that people may want to access from anywhere on the site, like the site map, the home page, and the feedback form. That is, they don't link to every single page on the site.

Since you will be working on your navigation menu (or "navbar" as some people like to call it) from the next section onwards, you will need to decide which pages on your site you want to link to. If your site is going to have hundreds of pages, like mine does, you won't be able to link to everything. (Actually, you can, but your menu will be very long, and your page will be very large and take forever to load.)

Whatever you decide, your navigation menu should at minimum include the following pages:

Although your site logo already links to your home page, it's still good to have the home page as the top item in your navigation menu. Bear in mind that your site will attract all kinds of visitors, including new Internet users who may not be familiar with the convention that you can click the site logo to go to the main page. Remember that one of your goals in web design is to make it easy for your visitors to get to where they want to go on your website.

You will be creating a site map in the next chapter. I'll also discuss the importance of that page and what it does at that time. For now (or rather, later on in this chapter), just create a button pointing to the site map.

Your site map will be located at "http://www.example.com/sitemap.html", where "www.example.com" is (of course) replaced by your actual domain name.

You will be creating a feedback form in the final chapter of this tutorial. As such, you'll need a button that links to the feedback form.

Your feedback form will be located at "http://www.example.com/feedback.html", with the "www.example.com" portion replaced by your site's real domain.

If you are creating a business site, you should create an "About Us" page to tell your visitors about your company. For personal sites and hobby sites, this page is optional. (In other words, only add an "About Us" button if you want to have an "About Us" page.)

Your About Us page will have an address of "http://www.example.com/about.html", again with the "www.example.com" replaced accordingly.

If you're selling goods or services, you should create buttons for each of the following:

Products (or Services)PricesOrder

If you have a physical store, you may also want to create a button that links to a page where you can give your shop's address and provide a map showing visitors how they can get there. Call the button "Location" or "Store locations" or something like that.

The filenames of these pages can be anything you like. However, for the reasons I describe in my article on How to Create Good Filenames for Your Web Pages, do not put spaces or capital (uppercase) letters in your filenames. For example, an address of "http://www.example.com/products.html" is good, but an address of "http://www.example.com/Products.html" may cause problems in the future.

As you've probably deduced from what I said above, plan both the names you want to put on the buttons, as well as the filenames of the pages linked to. For the Site Map, About Us and Feedback Form pages, please use the filenames I supplied above. You will be using those same filenames in chapters 7 and 8 when you create those pages, so if you change them in this chapter, your buttons will not connect to the pages you create in the next couple of chapters, and you will get 404 File Not Found errors when you click the buttons.

Start up Dreamweaver and open your home page. You can open the page by doubleclicking "index.html" in the FILES panel on the right side of the Dreamweaver window.

This step is almost identical with what you did in chapter 5, where you changed text into clickable links.

Select the words "Link one" by dragging your mouse over them. Then type "Home" (without the quotes). This should overwrite the existing words with what you type.

Click the "Link" field in the PROPERTIES panel at the bottom of the Dreamweaver window. Delete the hash ("#") mark that is currently in that field. In its place, type the web address of your home page. For example, type "http://www.example.com/" (without the quotes) into that field, if that is the URL of your home page. Like the link to your home page that you made in chapter 5, you can, alternatively, use a relative URL if you prefer. (Please see chapter 5 to find out what relative and absolute URLs are, if you can't remember what they mean.)

With this step, the top button in your navigation menu is now a clickable link to your home page.

Select "Link two" (second button) and replace it with "Feedback Form" (without the quotes). Alternatively, you can also use "Contact Form", "Contact Us", "Feedback", "Support" or whatever you want as the label for your feedback form. (It doesn't really matter.) Replace the "#" in the "Link" field of the PROPERTIES panel with either the absolute URL of "http://www.example.com/feedback.html" (without the quotes) or the relative URL of "feedback.html" (without the quotes). If you use an absolute URL, remember to change the "www.example.com" part to your own domain.

Select "Link three" and replace it with "Site Map" (without the quotes). Change the corresponding "#" in the "Link" field of the PROPERTIES panel to either the absolute URL of "http://www.example.com/sitemap.html" (without the quotes, and with the "www.example.com" portion replaced with your domain) or the relative URL or "sitemap.html" (without the quotes).

If you've decided to have an "About Us" page, replace "Link four" with "About Us" (or "About me", or even just "About"). The "Link" field for this button should be set to either "http://www.example.com/about.html" or "about.html". Again, don't enter the quotes, and remember to replace the domain with your own.

If you don't want an "About Us" page, just skip this step.

At this point, you've either run out of buttons, or have one left over, depending on whether you've created an "About Us" button. Read on to find out how you can add more buttons to your navigation menu, as well as how you can delete buttons that you don't want.

Note that you do not have to put your buttons in the order I suggested above. Apart from the "Home" button, which should always be the first button in your navigation menu, feel free to use any order for the other buttons. Just remember to match the correct page URLs to the labels you place on those buttons. That is, if you replace "Link three" with your About Us page, be sure to use the URL for the About Us page when you modify the Link field in the PROPERTIES panel, and not the Site Map URL.

Click your mouse somewhere in the last button of your menu. This places the blinking text cursor amidst the words there. Use the arrow keys on your keyboard to move the cursor to the end of the word (or words) on that button. For example, if the last button says "Site Map", make sure that your text cursor is after the "p" of "Map".

Hit the ENTER key (or RETURN key on the Mac). This creates what looks like a tiny sliver of a button below the last button and puts your cursor there.

Type the label you want to put on that button. For example, if you want the next button to say "Order Form", type "Order Form" (without the quotes). Don't worry if the things you type are not properly aligned, or that they don't have the same colour as the other buttons. This will be fixed in the next step.

Select the words you just typed. You may find it easier to select them if you drag your mouse backwards from the last letter of the last word. Alternatively, hold down the Shift key on your keyboard while pressing the arrow keys to select the word.

Type the URL of that page into the Link field of the PROPERTIES panel, followed by the ENTER key. Don't worry that there isn't any hash ("#") mark in that field. For example, type "order.html" into that field (or its absolute URL version, if that's what you used for the other items in your menu).

The words on the button should now be centred. The button itself will also change colour to match the other buttons on the menu.

If you want even more buttons, just go through the above procedure again for each new button.

Select all the words on the button that you want to delete. For example, if you want to delete the "Order Form" button on your menu, drag your mouse over the words "Order Form" to select them.

Hit the DEL button on your keyboard. This shrinks the button down to a thin horizontal gap on your menu.

Position your mouse so that it is directly over that narrow sliver. Click the right mouse button to bring up a pop-up menu.

Click the "Remove Tag

  • " item on that menu. The button should disappear altogether.

    Warning: if you do not see "Remove Tag

  • " in the menu, but see something else, like "Remove Tag
  • 0 comments:

    Post a Comment

    © 2011 BLOG MONEY, AllRightsReserved.

    Designed by ScreenWritersArena