Support » Fixing WordPress » Still trying to figure out how to open an image link in a new window

  • I have been scouring the support site for the last hour in hopes to figure out how to simply open an image link in a new window. Ex. opening my Instagram page in a new window from the Instagram logo image on my site.

    I have check marked the “Open in new window” box in the Edit, Advanced Settings of the image. It didn’t save my change.

    I have read that I need to manually insert target=”_blank” in the html. I have tried different ways of doing this as I haven’t found any instructions clear to say EXACTLY where to add this code.

    This is the code on my image with the link URL… now where does the exact placement of the target_blank… go?

    <img alt=”” src=”” />

    It seems like it would be such an easy thing to do but instructions I’ve read assume the reader is a master at html. not so.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator kmessinger


    <a href="" target="_blank"><img src="" border="0" /></a>

    It still opens it up in the SAME window/tab. My reason is so the reader doesn’t get distracted and move away from my original site entirely. Could you explain exactly where this code goes as well. I’m assuming that I open up the PAGE where the image is – click on the TEXT tab – find the image details in the html and insert it there, replacing any code previously associated with the image? Also in your code it doesn’t have any direction to the URL ( did I miss something?

    Moderator kmessinger


    Go here, You can see it opens in a new window.

    You don’t need to add any code. In the dashboard go to the post and click on the image. Click on the edit icon in the image. A window opens up. Click on advanced settings. Scroll down and check Open link in a new window.

    I did that but it didn’t save my changes. I tried many times and just again. It doesn’t seem to keep the settings after hitting Update.

    Moderator kmessinger


    Where is wordpress used on your site?

    [edit] I found it.

    Moderator kmessinger

    (@kmessinger) must be an old link?

    You also can post directly at

    To get rid of the problem we have to do the normal trouble shooting. Disable all your plugins by renaming the plugin folder plugins old. If it now works create a new plugin folder and drag your plugins in one by one until you see which one is at fault.

    In the interim you can try to put this code in the text tab and see if it works. This is the code wp creates when the update works.
    <a href="" target="_blank"><img alt="" src="" border="0" /></a>

    Thank you kmessinger for your help. I still can’t figure it out so I’ll go with the link opening up in the same window until I can. I tried putting that code in the text tab… I didn’t know exactly where to put it in there so I guessed and placed it above the code relevant to the image. It didn’t work. The updates still don’t save either (open link in new window)… not sure why, it seems so basic. The learning curve is very frustrating sometimes. thanks again.. I appreciate it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Still trying to figure out how to open an image link in a new window’ is closed to new replies.