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 Four, Dreamweaver provides some amazing tools for automatically updating links in your pages to keep your site in working order, even if you move files around. But even Dreamweaver isn’t smart enough to know when a page on someone else’s website has been 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 by hand:

  1. Select the text link or picture link.

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

  2. Use any of the techniques described on Link from the Scorpio page to the Horoscopes page to specify the link’s new target.

    For example, click the “Browse for File” button in the Property inspector and locate a different web page in your site, or type a complete URL to point to another page outside 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 pointing 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 Modify→Remove Link, or press Ctrl+Shift+L ...

Get Dreamweaver CS5: 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.