Skip to main content
Inspiring
September 14, 2018
Question

Is a link text or source code

  • September 14, 2018
  • 2 replies
  • 1749 views

For find and replace Is a link text or source code?

This topic has been closed for replies.

2 replies

ALsp
Legend
September 14, 2018

To add to Wolf Shade's advice, If you are wanting to change the link code (the HREF or a class name, for instance) perform your search in Code View.

If all you want to do is change the link text, then do your Find in Design View.

Tip: Use pure Code View or Pure Design View for a more stable experience, especially when finding/replacing.

WolfShade
Legend
September 14, 2018

If you are editing any code, you always search for source code.

V/r,

^ _ ^

larry45Author
Inspiring
September 14, 2018

Thanks both answers are confusing for such a simple question. For sitewide find and replace

A typlical link like, www.shoes.com etc correct drop-down choice is text? not code.  Pity in the dropdown not choice called link.

There is sitewide link change but it seems to be broken.

Jon Fritz
Community Expert
Community Expert
September 14, 2018

While "code" is just text, the "text" that the Find & Replace tool is talking about is "html text that would display in the browser".

For example, here's some code...

<a href="http ://www.yoursite.com" alt="some text here">This is my link</a>

The above code has a link and "text". If you search "text" the "This is my link" is the only information DW is looking at. The link itself is part of the code but would not be considered "text" by the F&R tool because it's not displayed on your page.