Skip to main content
mohameda50058445
Participant
May 27, 2022 9:01 AM UTC
Question

Find and Replace

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 is closed to new replies. Start a new post to keep the conversation going.

    6 replies

    Nancy OShea
    Community Expert
    Community Expert
    May 27, 2022 7:23 PM UTC

    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.

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    May 27, 2022 12:33 PM UTC

    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 

    Translate
    Sil.C
    Community Manager
    Community Manager
    May 27, 2022 9:15 AM UTC

    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 🙂

    Translate
    mohameda50058445
    Participant
    May 27, 2022 11:42 AM UTC

    Dreamweaver 

    Translate
    mohameda50058445
    Participant
    May 27, 2022 11:43 AM UTC

    I was led here via a link from online chat support

     

    Translate