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 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 cases, you need to change the links by hand:

  1. Select the text 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 a 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 to keep the originating text or image, but remove the outdated link. In that case, select the link text or image and then use one of these tactics:

  • Choose Modify→Remove Link, or press Ctrl+Shift+L (⌘-Shift-L).

  • Delete the text in the Link field of the Property Inspector and then press Enter (Return).

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 to the normal text color for the page.

Of course, if you’re feeling particularly destructive, you can delete the link’s text or image itself, which simultaneously deletes the link.

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