Skip to main content
mohameda50058445
Participant
May 27, 2022
Question

Find and Replace

  • May 27, 2022
  • 3 replies
  • 440 views

On all the files on my website , I have in my code target=_blank , I need to change all ( and they are quite a lot ) , to target=_self , how can I make this automatically to all the website pages ?

    This topic has been closed for replies.

    3 replies

    Nancy OShea
    Community Expert
    Community Expert
    May 27, 2022

    Stripping target="_blank" from your anchor tags is ALL that's required.  Target="_self" is the default behavior.  No code expression needed.

     

    To remove targets from anchor tags, use Ctrl+Shift+F and the Advanced panel. See screenshot.

     

     

    Hope that helps.

     

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    May 27, 2022

    In newer versions of DW...

    1. Hit Cmnd/Ctrl + Shift + F for the Find & Replace in Files option
    2. In the Basic tab, add your code to be replaced to the Find field
    3. Change "In" to Entire Current Local Site
    4. Leave [any tag] as is
    5. In the Replace field, place the code you want to change to
    6. Hit Replace All 

    Sil.C
    Community Manager
    Community Manager
    May 27, 2022

    Hi! You've posted this in Using The Community.
    Please let us know which Adobe software you're using, and a moderator will move your post to the relevant community or share how to best get support 🙂

    mohameda50058445
    Participant
    May 27, 2022

    Dreamweaver 

    mohameda50058445
    Participant
    May 27, 2022

    I was led here via a link from online chat support