Viewing 2 replies - 1 through 2 (of 2 total)
  • jack randall

    (@theotherlebowski)

    if you’re just adding images into the body of your post as links then you can add target="_blank" to the link and that will do it.

    if it’s a gallery then make sure that the images/gallery are set to open to attachment page rather than image file and this should open a new blank tab that has only the image in it.

    Thread Starter jamesherring

    (@jamesherring)

    Hi Jack,
    Thanks for the advice. Unfortunately, I don’t know how to add target=”_blank” to the link. This is the HTML for the link:
    [caption id="attachment_2828" align="alignnone" width="1024"]<img class=”wp-image-2828 size-full” src=”https://jherring.files.wordpress.com/2016/01/img_0043.jpg&#8221; alt=”IMG_0043″ width=”1024″ height=”683″ /> The London Eye on the Southbank[/caption]

    So where do I add target=”_blank” ? Also, do I have to do this with ALL future photos? Best wishes
    James

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Making photos open in new tab’ is closed to new replies.