WordPress.org

Forums

Still trying to figure out how to open an image link in a new window (8 posts)

  1. safariridge
    Member
    Posted 1 year ago #

    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="http://safariridge.com/learning/wp-content/uploads/2013/12/instagram.jpg" />

    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.

  2. kmessinger
    Forum Moderator
    Posted 1 year ago #

    <a href="http://safariridge.com/learning/wp-content/uploads/2013/12/instagram.jpg" target="_blank"><img src="http://safariridge.com/learning/wp-content/uploads/2013/12/instagram.jpg" border="0" /></a>

  3. safariridge
    Member
    Posted 1 year ago #

    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 (http://instagram.com/safariridge) did I miss something?

  4. kmessinger
    Forum Moderator
    Posted 1 year ago #

    Go here, http://test.savethecolors.com/blog/ 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.

  5. safariridge
    Member
    Posted 1 year ago #

    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.

  6. kmessinger
    Forum Moderator
    Posted 1 year ago #

    Where is wordpress used on your site?

    [edit] I found it.

  7. kmessinger
    Forum Moderator
    Posted 1 year ago #

    http://safariridge.com/Safari_Ridge/Home.html must be an old link?

    You also can post directly at http://wordpress.org/support/theme/parabola

    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="http://safariridge.com/learning/wp-content/uploads/2013/12/instagram.jpg" target="_blank"><img alt="" src="http://safariridge.com/learning/wp-content/uploads/2013/12/instagram.jpg" border="0" /></a>

  8. safariridge
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic