Close. Here what we are supposed to do from the lesson from class. Taking intermediate Dreamweaver CS6.
What we need to do now is go through the links one at a time, selecting the anchor tags and then modifying the template so that the class attribute is editable for each anchor tag. Is your head spinning yet? Don't panic—this is easy.
Let's do it:
- In your template's Document window, select the word Home on the navbar.
- On the Tag Selector at the bottom of the Document window, click the <a> tag to select it.
- Select Modify > Templates > Make Attribute Editable from the menu bar. This opens the Editable Tag Attributes dialog box, shown here:
There's only one problem—the attribute listed in the Attribute field isn't the one we want. The dialog box defaults to whatever attribute the tag currently has, and the only attribute in place right now is the href one. We want the class attribute, so we need to add it to the menu. We do that by clicking the Add button.
- Click the Add button to the right of the Attribute field to bring up another small dialog box.
- Type class into the field provided, as shown here:
- Now click OK to return to the original dialog box and finish our modifications.
- In the Label field, enter Home_link.
- Leave the Type field set to Text.
- Leave the Default field empty, and click OK.
Above are the instructions for the lesson. I tried what you suggested but I stil cannot type in the pop up box
I don't really need a lesson on all this . It's works fine for me.
Can you tell us which version & build # of DW you're using?
Also, elaborate a bit on what isn't working for you and in which screen shots?
Using Dreamweaver CS6 Version 12.0 Build 5861 for Mac, MAC OS Mountain Lion 10.8.5
When I get to the last screen shot , click add and the pop up shows, I try to type the word class in the box the cursor just blinks. I can't type anything.
1 person found this helpful
Does your Template.dwt contain any class attributes in the code like this?
<li><a class="home" href="home.html"></a></li>
<li><a class="about" href="about.html"></a></li>
<li><a class="contact" href="contact.html"></a></li>
1 person found this helpful
After you make the class attribute editable -- in this example "home," your code should look like this:
<li><a href="home.html" class="@@(home)@@"></a></li>
I've tested it both ways -- with and without classes in the code. It works for me on Win with CS6 12.2 build 6006.
This is the code I have so far:
<li><a href="#">Discovery of Hypertext</a></li>
<li><a href="#">Creation of the Web</a></li>
The way I am reading the lesson is I am supposed to be adding a class attribute. Still fairly new to all this. Truely do appreciate your time to assist me.
I can't reproduce your problem at my end. When things don't work the way they should, it's sometimes a bad Cache or Personal Configuration file.
See Deleting Corrupted Cache in DW
No luck. I am thinking unistalling and reinstallng might be my best bet.