Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25207

    Hi,

    I’m using a widget to post images in my sidebar. When clicked, they open by default in a lightbox. Problem is that I find the lightbox does not look very sharp, and it also has the file name on top, etc.

    Question: Is there a way to get the image to open in a new window or tab? Instead of the link to the image in my library, is there a line of code that would solve this?

    Thanks!

    Regards,

    Poirot

    #126119

    Hi,

    Add the class=”nolightbox” on the anchor tag. Something like this

    <a class="nolightbox" target="_blank" href="http://www.google.com"><img src="IMG_URL"></a>

    Regards,

    Ismael

    #126120

    Thank you, Ismael.

    Regards,

    Poirot

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Open image in new window’ is closed to new replies.