Changing the content
Video: Changing the contentAnytime you use a widget you probably want to go in and customize it with your own content. In fact, that's what I want to do. I happen to use this Lightbox widget right here, which gives me a great portfolio. And how I've inserted it is I went to Insert > Widget and I've added it by going to the Widget Browser. So that's how I've inserted it, and now I need to customize it, because these are actually example files. In fact, as I select it, you can see right down here, in my Properties panel, that it gives me this example/thumbs.
Viewers: in countries Watching now:
Join author Paul Trani as he shows how to create a web site step by step with Adobe Dreamweaver CS6, one of the industry's leading web authoring tools. But not just any web site. A responsive HTML5 web site that works across multiple browsers and devices, complete with rich imagery and text, a robust portfolio, video content, and even a contact form. This course covers how to use web standards such as HTML5 for structure and Cascading Style Sheets (CSS) to control colors, fonts, navigation, and more. The course also demonstrates how to test across multiple browsers and devices and upload your new site to the web.
- Understanding basic web principles
- Adding content to a web page
- Linking to web sites and email addresses
- Styling content with CSS
- Creating a layout that fits multiple browsers and devices
- Building an HTML5 layout
- Inserting images and video
- Adding a menu bar
- Creating a contact form
- Integrating a Twitter feed
- Uploading and testing a web site
Changing the content
Anytime you use a widget you probably want to go in and customize it with your own content. In fact, that's what I want to do. I happen to use this Lightbox widget right here, which gives me a great portfolio. And how I've inserted it is I went to Insert > Widget and I've added it by going to the Widget Browser. So that's how I've inserted it, and now I need to customize it, because these are actually example files. In fact, as I select it, you can see right down here, in my Properties panel, that it gives me this example/thumbs.
Well, I need to replace that with my own content. So I'm going to click Browse for File to replace that thumbnail. You can see this example folder is actually what's been added since I added that Lightbox gallery. So I'm going to go out to my 02 Begin folder. And really, what you want to do is use your own files for this, but if you do have access to the example files, you can go into images. You can go into thumbs and right in here, here is port1. I'll just hit the spacebar, and you can see that small image happens to be 72x72 pixels. It's just small and appropriate for my gallery. Selecting Open and there it is.
Now it's still linking to that Dancer image, that example image, so I need to replace where it links to, by going back out to my 02 Begin folder and going into my images folder and pointing to, inside of the slides folder, that port1.jpg. Hitting the spacebar, you can see what will be displayed. So this is what I want, something that I've created, something I've shot. It looks great and again, selecting Open.
So I've changed those two references, In fact, this Alt text says Dancers in Red. Well, that's not going to work for me. It's Venice, Italy, adding that Alt text or changing that Alt text. Now let's take a look at this. As I save the page, I'm going to preview it in a browser, just to see how that one image looks. Rolling over it. Now it says Dancers. Where does that come from? We're going to take a look. As I select that image, you can see that get larger. That says Dancers and Dancers in Red.
So there are still a couple more things that I need to change. So I did want to show you sort of some of those areas that still need to be changed, because they are actually not available down here. So you do reach this point where you need to go in and change some of the code, so that's exactly what I'm going to do. With this image selected, I'm going to go to the Code view. All right, here I am, in the Code view. I'll scroll down, and it's this div right here. This is that image.
So you can see this is what I've changed, the path to the slide. I also change the path to the thumbnail but you can see that comment. Oh, that's where that comes from. I can change Dancers in Red to Venice, Italy, 2012, just when that was taken. And the title right here, I can change that to Venice, okay. And lastly, this Alt text, that's Venice, Italy as well. All right! So that's what I've done. I was able to change those additional items--the comment, the title, the Alt text. Everything should be pretty good now.
I'll click the Design view, and I'm going to save this page and just preview it in a browser one more time. As I roll over, ah, there we go, Venice, more like it. As I select it, right down here, Venice, Venice Italy. Well, that's only one that I've done. Now I would have to go in and do the same thing for these additional images. There's a couple of ways we can do that. I can select this image here, and I can change it the way I always have.
So Browse for File, going to my 02 Begin folder. Inside of that images folder, inside of that thumbs folder, that's my port2. Hit that spacebar. That's what it looks like, and changing it that way. So I'm changing that source and then changing it, what it links to. So 02 Begin/Images/Slides as well. All right, but I have quite a few images in here. Click Open. And I've done two so far, and I still have to go into Code view, okay.
I can go into Code view to start to change this. And that's what I'm going to do. I'm going to change the comment to Lost in Flight book cover, title is Lost in Flight, and I'll just copy this and paste it for the Alt text. All right! So I don't need to keep going to the Properties panel; in fact, what I can do is I can just take this and I can just copy it and paste it below and just change the numbers and the additional content.
In fact, that's what I'm going to do. I'm going to copy this, and instead of having all of these various items as I scroll down, I don't need most of it. So you can see clear down here this final div. I can select all this code. Or another way to do it is going into Design view. See how I've selected it? It already actually highlights it. Well, again selecting all of that code, all of those images and clicking Delete.
Going back into Code view, I've deleted all that content, hitting Return after that last div there, and pasting in that exact div that you see above. And then I can start swapping out this content. This is the fast way to do things, to start to changing some of these items the way you would, making reference to the appropriate images, changing the appropriate comments, titles, Alt text, to really build out your portfolio.
All right, now that I've added all the images, I can go ahead and take a look at them. Everything is customized. And let's preview this in a browser. You can see right in here, here's all those various thumbnails. I can select them, whichever one I want. Not only that, it gives me the title as well as the comment right down here. I can click to the next image. You can see how that looks customized, customized. Even as I roll over, I can click on the next one, just like that. Everything looks good.
So again, I was just able to copy and paste a div and then just customize it accordingly. You can see everything is looking great. The last thing I'm going to do is just move this down to the next line, but overall, I'd say that looks pretty good, even as I scale it down some. All right, so right down here, as I go into Design view, I can just hit Return. Okay, so with all of the content customized, you can then start to work more on the style, just to make sure it works well with your website.
Find answers to the most frequently asked questions about Creating a First Web Site with Dreamweaver CS6 .
Here are the FAQs that matched your search "" :
- Q: Where do I learn more about how to make a website?
- A: Discover more on this topic by visiting how to make a website on lynda.com.
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.