Chapter 8. Creating a Business Web Site

Creating a Business Web Site
  • Editing images for templates

  • Putting together a business home page in Dreamweaver

  • Creating other pages from a Web template

  • Using background images in Web designs

Once in a while, I still meet small-business owners who ask, "Do I really need to have a Web site?" Today, the answer is easy: "Yes." And, increasingly, the owners of even the smallest businesses have caught on to the many advantages of creating, or extending, their business online: Creating a site for a business can help sell more of its products, attract more customers, and better serve the existing customers.

Whether you're creating a site for the first time or redesigning a site, you can customize the templates featured in this book to create nearly any kind of Web site, whether you want a site for your carpentry business, law firm, photography studio, or nearly anything else you can imagine promoting online.

In this chapter, you walk through the steps of customizing templates designed to meet the needs of many small businesses.

Introducing the Business Site Templates

Although every business is different, most good business Web sites have some things in common: basic information about the business or service, photos, sample work, contact information, and so on. A testimonials page is another good idea for any business, such as the one my friend, actor Yuval David, features on his site, shown in Figure 8.1. By altering the template used in this chapter (shown in Figure 8.2), you can create a site for your own business with all these features and a design as professional-looking as Yuval's.

By simply replacing the banner image and adding a photo with a frame, I've customized this template to create this page on www.yuvaldavid.com.

Figure 8.1. By simply replacing the banner image and adding a photo with a frame, I've customized this template to create this page on www.yuvaldavid.com.

This template can be altered to create a site for many kinds of businesses or professionals.

Figure 8.2. This template can be altered to create a site for many kinds of businesses or professionals.

By altering the names of the sections in this template, you can quickly create a similar Web site that fits the needs of your Web project, and you can use the template to create new pages and build a bigger Web site, like I did for my friend's acting site, which includes videos, photo galleries, and other special sections. (You can download all the templates featured in this book from the companion Web site at www.DigitalFamily.com/diy.)

The Business Template, included with this chapter, comprises the following files:

  • images: All your template image files are in this folder, in TIFF format. These image files include layers, which makes it easy to edit them in a program like Photoshop or Photoshop Elements. You also find in this folder optimized JPEG files that you can use if you want to practice as you go through these tasks. (You learn more about resizing and optimizing your own images for the Web in Chapter 5.)

  • index.html: The main page of any Web site should be named index. You can alter the basic template design to use multiple images or to include more text, but it's always good to include a clear description of what your site is about on the home page.

  • about.html: This is a good place to include a description of your business, your biography, or other background information. A larger business can expand this into a series of pages that make up a Who We Are section for staff, executives, board of directors, and so on.

  • news.html: The news or press section can feature your latest activities. You can even link to a blog. You find out how to set up a blog in Chapter 11.

  • work.html: This section can include videos, case studies, articles you've written, or other samples of your work.

  • gallery.html: List additional information or create a new section of your site, such as a listing of products, services, or photos.

  • contact.html: Making it easy for customers to reach you is always good, but be careful about giving away too much information on your Web site. If you work at home, for example, you may want to leave off your street address and just include an e-mail address on your contact page. Figure 8.3 shows a contact page.

You also find subfolders in this Business template. The images folder contains the starter image for the banner for this site and is a good place for you to save any new images you want to add to the site. You also find the Templates folder, which is where Dreamweaver saves the Template file that goes with these page designs. (Flip to Chapter 6 for a refresher on Dreamweaver template files.)

Tip

If you want to rename any of the files or folders in this template site, be sure to do so in the Dreamweaver Files panel to ensure that Dreamweaver automatically adjusts the links that correspond to the files. You can add pages to the Business template site by following the instructions in the section "Creating and Editing Pages with a Web Template in Dreamweaver," later in this chapter.

You can change these template pages a little or a lot to create more dramatic pages, such as this contact page with a long background image.

Figure 8.3. You can change these template pages a little or a lot to create more dramatic pages, such as this contact page with a long background image.

Editing and Sizing Images for the Template

I generally start my design work in a program like Photoshop and recommend you prepare at least some of your images in a program like Photoshop or Photoshop Elements before you start working on the templates in Dreamweaver.

To help you get your images ready for this business site, I included three starter images: one for the banner, one that can serve as a photo frame, and one for the home page.These graphics files are composed of different layers, each containing a separate element in the design, so you can change the text, colors, and even add more photos. I've included all the starter images in the images folder so all you have to do is add your own text and photos.

In this task, I use Photoshop Elements to transform the starter images into the images for the actor site, but you can follow these same steps in whatever program you prefer (or have handy), including Photoshop, Photoshop Elements, or Fireworks. After you prepare each image, you use the Save for Web option to optimize them for the Web. (You find more about creating and optimizing images for the Web in Chapter 5.)

  1. Launch a graphics program, such as Photoshop or Photoshop Elements (shown here); choose File

    Stuff You Need to Know
    Stuff You Need to Know
  2. You can copy and paste images into this template by choosing File

    Stuff You Need to Know
    Stuff You Need to Know
  3. After you paste an image, like this photo, you can click anywhere within the image and drag to adjust its placement. You can also click and drag a corner to adjust the size of the image. And here's an advanced Photoshop tip (that also works in Elements): If you hold your cursor just outside the corner of an image, the arrow becomes curved like the one in this figure, indicating that you can rotate the image, to set it off at an angle, as I've done to position this photo in its frame. You can also rotate an image by choosing Edit

    Stuff You Need to Know
    Stuff You Need to Know

    Tip

    If the image you're adding to a template is significantly larger than the template file, resize the new image before you copy and paste it into the template image. The image size for each image is displayed in the template. You can change the resolution and dimensions of an image by choosing Image

    Stuff You Need to Know
  4. To edit the text, select the Text tool from the Toolbox. Then click and drag to select the text and type to replace it. Use the options at the top of the workspace to change the font, size, and color. In this example, I clicked the color well at the top of the page to change the text color. Tip: To reposition text on the page, click to select the Move tool from the Toolbox. (In Photoshop, the Move tool is represented by the double-headed crossed arrow icon at the top of the Toolbox.) Then click and drag any section of text.

    Stuff You Need to Know
  5. When you're done customizing the banner image for your Web page, choose File

    Stuff You Need to Know
    Stuff You Need to Know
  6. You can insert images of many different sizes into the templates in this business site and align them to the left or right so that text can wrap around them. To dress up your images, you can use a background as a frame. I've included a starter image called Photo-Frame-Template.tif in the images folder for you.

    Stuff You Need to Know
  7. Because this site is for an actor, I thought it would be fun to use a frame around the photos that makes them look like they're stills in a film strip. I start by adding the filmstrip image to serve as the background.

    Stuff You Need to Know
  8. When you layer images like this, make sure the right image is on top in the Layers panel, because that controls how the final image looks. In this case, I need to make sure the image with the photo is above the background image with the filmstrip.

    Stuff You Need to Know
  9. With a photo like this positioned above a background image, like this filmstrip, you can use the Move tool to click and drag the image into position, change the size, and adjust the alignment until you get it framed just the way you want it.

    Stuff You Need to Know
  10. When you have everything set the way you want it, choose File

    Stuff You Need to Know
    Stuff You Need to Know
  11. You can create images as large as you want. Just beware that the more you put on a Web page, the longer it takes to download. If you're going to create a page like the home page design my friend Davi Cheng created for Yuval's acting site, you need to limit what else you put on the page. If you're going to use a large image on a page, that's probably all you should put on that page. In this case, I created one, big layered image by copying in each image (and cropping out the main photo).

    Stuff You Need to Know
  12. Even large, layered images like this one can be optimized for the Web so that they load fairly quickly. Because this is the only image I'm placing on the home page of his site, it should load quickly at only 84K in size.

    Stuff You Need to Know

Note

When you use the Save for Web dialog box, you create a copy of the image in its new, optimized format. As a result, after you close the Save for Web dialog box, the original image remains open and unchanged in Photoshop Elements.

Putting the Pages Together in Dreamweaver

In this task, you set up a new Web site using the Business template and start customizing the pages.

As you work through the following steps, remember that you can alter this template a little (by simply adding your own text and images) or a lot (by changing the colors, font options, and other style settings) to make the design more your own. Also notice that by using a large photo on the home page and a smaller, banner photo on the inside pages, I can create a very different look for the home page with the same template I use for the inside pages.

  1. In Dreamweaver, choose Site

    Stuff You Need to Know
    Stuff You Need to Know
  2. When you complete the site setup process, the files and folders in the template are displayed in the Files panel in Dreamweaver, at the side of the workspace. Double-click the index.html file in the Files panel to open the home page in Dreamweaver.

    Stuff You Need to Know
  3. At the top of the home page, you can change the page title, as I'm doing here, by replacing the text in the Title field. Enter your name or business name or a brief description to identify your site, such as I did in this example, with the words Official Site of Actor Yuval David. The page title is the text that appears in the title bar at the top of the browser window when someone views a page online; this text is saved in a list of sites if someone bookmarks the page.

    Stuff You Need to Know
  4. You can replace any of the image placeholders with images you prepared for your site. To insert an image, double-click any image, such as the banner at the top to open the Select Image Source dialog box. Navigate on your hard drive to find the image you want to insert and then double-click the image filename to select it. As you see in this example, I'm inserting the home page image I created and optimized in the previous task. If the image you select isn't already located in your root site, Dreamweaver offers to copy the file into the root folder after you select it.

    Stuff You Need to Know
  5. The way this template is made, the design expands to fit images of any height, but the width should not exceed the overall width of this design, which is set to 970 pixels wide. Because this home page is just one big image, it's one of the easiest pages to create in Dreamweaver. Simply delete any text you don't want in the template and save the page. (Remember, the home page should always be named index.html.)

    Stuff You Need to Know
  6. On the rest of the pages in this site, I use a smaller banner image at the top of the template to leave room for text and images I want to include on these pages. This template is set up to let you use a different banner on each page, which enabled me to use different photos of Yuval throughout the site, but you can use just one banner if you prefer.

    Stuff You Need to Know

    Note

    The links in all the pages in this Business template can be changed only in the template file used to create these pages. That makes it possible to set the main links on all the pages at once, as you do in the next task.

  7. You can add text by typing it into any part of the page, but be careful not to delete the formatting when you delete the Latin (Lorem ipsum) text, which is included as filler in the template. If you have trouble adding text without altering the format, use Undo (Ctrl+Z on Windows, or

    Stuff You Need to Know
    Stuff You Need to Know
  8. You can insert images anywhere in the main area of the template by clicking to place your cursor where you want the image to appear and then choosing Insert

    Stuff You Need to Know
    Stuff You Need to Know
  9. To change the text size or color in these templates, you need to edit the style that controls the elements. To do so, open the CSS Styles panel (if it's not open already) by choosing Window

    Stuff You Need to Know
    Stuff You Need to Know
  10. To apply the heading styles to text in the page, select the text and then use the Format drop-down list in the Property Inspector to choose a Heading size.

    Stuff You Need to Know
  11. To change the layout of the page, you need to change other styles, such as the width of the style named #container, which controls the overall width of the page in this template. You can double-click the name of a style in the CSS Styles panel to open the style in the CSS Rule Definition dialog box and edit it there. Or make changes in the lower half of the CSS Styles panel as you see in this figure.

    Stuff You Need to Know
  12. You can change the layout dramatically from page to page using the same template in a Web site simply by using images in different sizes and aligning them differently on the page. In this example, I'm adding a big image with three separate photos to fill most of the width of the page.

    Stuff You Need to Know
  13. To test your work in a Web browser, choose File

    Stuff You Need to Know
    Stuff You Need to Know

Tip

You can change the width of the page, but I've designed this template to be 970 pixels wide because that size is a good width if you're designing for a screen resolution of 1024 × 768, a common resolution on 15- and 17-inch monitors, considered the most common in use on the Web today.

Creating and Editing Pages with a Web Template in Dreamweaver

As described in the previous task, you can add your own images and text to the pages of the Business template to create a variety of different looks for your site. When it comes to editing the main links and copyright information that appear on every page, however, you need to change those in the template file itself. Although this requirement may seem limiting at first, the benefit is that you edit these links in only one place to update the main navigation links on all the pages in the site.

Dreamweaver templates are designed so that some regions of the page can be edited in pages created from the template, and other regions can be edited only in the template itself. The navigation links that appear above the banner in this template and again at the bottom of the page with the copyright information can be edited only in the template.

In this task, you make global changes to pages by editing the template file, and you create new pages from a Dreamweaver Web Template. Before you can complete this task, you must complete the site setup process in Dreamweaver, covered at the beginning of the preceding task.

  1. To give you a head start on this Web site design, the Business template folder has several pages that are already linked together. You can edit any of these pages, such as the work.html page, by simply double-clicking the name in the Files panel to open it. It's common practice to include a page on your Web site that showcases what you do, like you see in this figure, and it's easy to add images, text, and even video files to this page that was created from the template.

    Stuff You Need to Know
  2. If you try to click the links or the copyright information on the work.html page or any of the other HTML pages that were created from this template, your cursor turns into a circle with a line through it, and you can't make any changes in the HTML file. To edit this part of the page, you need to open the template.

    Stuff You Need to Know
  3. To edit the template itself, double-click the name in the Files panel. In this Business template site, the template is called Business-Template.dwt and it's in the Templates folder.

    Stuff You Need to Know
  4. You can edit anything in the template file, but you should do it carefully so as not to disturb the formatting and links that surround the text. For example, to change the name of a section (at the top or bottom of the page), click to select the section of text, such as About Us, and replace it by typing the text you want to in its place. In this example, I changed About Us to Biography. As you can see in the Property Inspector at the bottom of the screen, when the text is selected, the link is displayed in the Link field. To change or reset the link, click the Browse button (it looks like a little yellow folder) next to the Link field in the Property Inspector.

    Stuff You Need to Know
  5. To apply a change in the template to all the pages created from the template, just save the template file and Dreamweaver prompts you with a dialog box that lists all the pages that will be updated. Click Update to complete the changes.

    Stuff You Need to Know
  6. Changing the text links doesn't alter the filenames, but you can change those as well by clicking to select the name of a file in the Files panel and typing to replace the name. Change file or folder names only in the Files panel to ensure that Dreamweaver updates any links that go to that page. As you see here, when I changed the about.html page to bio.html, Dreamweaver prompted me with another update dialog box listing all the pages that link to the about.html page. Remember: Folder and filenames used in Web sites shouldn't include spaces or special characters except the dash (—).

    Stuff You Need to Know
  7. To add a new page to this Web site by using the template, choose File

    Stuff You Need to Know
    Stuff You Need to Know
  8. Before you do anything else, always save the new page by choosing File

    Stuff You Need to Know
    Stuff You Need to Know
  9. Like all the other pages created from this template, you can replace the text and image placeholders with your own text, images, and even multimedia files. In this example, I've added code from the Vimeo video hosting service to insert a video into this page. You find out more about how to use video services, such as YouTube and Vimeo, in Chapter 13.

    Stuff You Need to Know
  10. To play multimedia, such as this video file, you need to preview your page in a Web browser by choosing File

    Stuff You Need to Know
    Stuff You Need to Know

Note

Many Web browsers don't display Dreamweaver Web Templates well, so if you try to preview the .dwt template page, you may get an error message. To test any changes you make to a template, open one of the pages created from the template and then preview that page in a browser and test the links and other features.

Using Background Images in Page Layouts

Whether you're working with one of the templates included in this book or you want to dress up a page you create with your own custom design, using background images can provide a great short cut to creating a distinct, professional-looking site — even if you're not a professional designer.

The best part about this trick is that you can find so much great artwork on stock image sites like www.istockphoto.com, where I got the filmstrip background image for the site. Web sites like iStockphoto.com license the rights to images, often with some restrictions. For example, for a few dollars, I bought the right to use this background image in a Web site and even feature images of that Web site in this book. If you want to use this image, or another image from iStockphoto.com, you have to buy the rights to the image for your own site. The good news is that you can choose from millions of photographs and illustrations on stock image sites and the licensing fee is a small price to pay for the professional look you get from a well-designed background. With a little creativity, you can create your own background images in a program like Photoshop or Photoshop Elements (see Chapter 5 for more on creating your own images).

  1. Stock image Web sites, like www.istockphoto.com shown here, offer rights to photographs, illustrations, flash videos, and animations. You can search among many different keywords and when you find an image, you simply click to download. Most reputable sites that offer good quality images do charge for the service, but sites like iStockphoto offer images for as little as $1 each.

    Stuff You Need to Know

    Tip

    When you're designing for the Web, you don't usually need a big, high-resolution image (the higher the resolution, they more expensive it is), but you do need to make sure you get a big enough version that it will fill the entire background of your page. Because most designers are creating sites for a 1024 × 768 monitor these days, the image should be at least 1024 pixels wide. You can always reduce the size of an image, but enlarging it can lead to a loss of quality.

  2. After you've created or downloaded an image to serve as the background of your Web page, you can combine it with other images and text in a program like Photoshop Elements, shown here. In this example, by placing the big image behind the text I was able to create a layered effect. You should edit and resize your background image and then use the Save for Web dialog box to save an optimized version for your Web site.

    Stuff You Need to Know
  3. You can add any image to the background of the entire page by choosing Modify

    Stuff You Need to Know
    Stuff You Need to Know
  4. Another way to use background images is in the background of a <div> tag in your page layout. In all the templates featured in this book, the designs are centered and they float on the screen so that they appear in the middle of the browser window no matter how big or small the monitor. If you use one of my templates, or create your own centered design like the one featured in this example, your best bet is to add the background image to the main div, in this case the <div> tag named #container that surrounds all the other content on this page. To do so, double-click the #container style in the CSS Styles panel; in the CSS Rule Definition dialog box that appears, choose the Background category and then click Browse button to the right of the Background field and select your desired background image file.

    Stuff You Need to Know
  5. To view the full impact of your background image, preview your page in different Web browsers and try out the design on large and smalls screens to make sure it displays well on a variety of computers. Chapter 10 explains site testing in more detail.

    Stuff You Need to Know
  6. After you've set up a background image for one page, it's easy to use the same design for any or all of the other pages in your site as well. When you add an image to the background of the page, you can add other images, text, or even multimedia files above the background to create a layered effect that can create a rich, full design effect.

    Stuff You Need to Know
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset