Modifying a Link

At some point, you may need to change or edit a link. Perhaps the URL you were linking to has changed, or you simply no longer need that link.

Changing a Link’s Destination

As you’ll read in Part 4, Dreamweaver provides some amazing tools for automatically updating your links so your site stays in working order, even if you move files around your site. But even Dreamweaver isn’t smart enough to know when a page on someone else’s Web site is moved or deleted. And you may decide you simply need to change a link so that it points to a different page on your own site. In both of these cases, you’ll need to change the links on your Web pages by hand.

  1. Select the text link or picture link.

    Do so by clicking anywhere inside the text link, or clicking once on the link image.

    The existing link path appears in the Link field in the Property inspector.

  2. Use any of the techniques described on page 95 for specifying the link’s target.

    For example, click the Browse-for-File button in the Property inspector and locate a different Web page in your site.

    The destination of the link changes to the new URL, path, or anchor.

Removing a Link

Sometimes, you want to stop a link from linking—when the Web page you were linking to no longer exists, for example. You want the text or image on your Web page to stay the same, but you want to remove the disabled link. In that case, just select the link text or image, and then use one of these tactics:

  • Choose ModifyRemove Link.

  • Press Ctrl+Shift+L (Shift-Removing a Link-L).

  • Delete the text in the Link field of the Property inspector and press the Enter or Return key.

The text or image remains on your Web page, but it no longer links to anything. If it’s a text link, the color changes from your site’s link color (see page 32) to the normal text color for the page.

Of course, if you’re feeling particularly destructive, you can also delete the link text or image itself; doing so also gets rid of the link.

Get Dreamweaver MX: The Missing Manual now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.