How to Batch Replace Multiple Links on Dreamweaver

104 10

    Batch Replace in Source Code

    • 1). Select "Edit" from the menu bar in Dreamweaver. Scroll down and click on "Find and Replace." This will open the Find and Replace box.

    • 2). Select the location of the files from the "Find in" drop-down box at the top.

      "Selected Text" will only replace links in a section of text that you've highlighted. "Current Document" will only replace links in the active open document.

      "Open Documents" will replace links across any documents currently open and on your Dreamweaver task bar.

      "Folder..." lets you select an entire folder of documents, and every instance in those documents will be replaced. The files do not have to be open to use this feature. However, find and replace in unopen documents is not reversible.

      The last two options will only work if you have designated a specific site or sites in the "Site" menu.

      "Selected Files in Site" lets you select specific files to replace within your site.

      "Entire Current Local Site" will replace across every page on your designated local site.

    • 3). Select "Source Code" from the "Search" drop-down box.

    • 4). Put the entire link you want to replace in the "Find" box. Be sure to include the entire tag. It should look something like this: <a href="/links/?u=pagename.html" target="_blank">

    • 5). Put the replacement link in the "Replace" box. Again, be sure to include the entire tag and double-check your spelling. It should look something like this: <a href="/links/?u=NEWpagename.html" target="_blank">

    • 6). Select "Match Case" from the "Option" section. Not all web servers consider URLs to be case sensitive. But if you are using a case sensitive server, it's crucial that you select this box. If not, it will not matter if the box is selected.

    • 7). Double-check the data in both fields and select the "Replace All" button. A list of all documents with replacements appears after the action is complete.

    Batch Replace with a Specific Tag

    • 1). Repeat the first two steps from Section 1 with one exception: in the "Search" drop-down box, select "Specific Tag."

    • 2). Select the "a" tag from the drop-down box that appears, then select "With attribute" and select the attribute "href" from the second drop-down box. Place the link you want to replace in the box after the = sign.

    • 3). Select "Set Attribute" under "Action," then select "href" again from the tag drop-down. Place the new link in the box after href.

    • 4). Select "Match Case" from the "Option" section.

    • 5). Double-check the data in both fields and select the "Replace All" button. A list of all documents with replacements appears after the action is complete.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.