Okay
  Public Ticket #210856
Make images open in lightbox instead of their own page?
Closed

Comments

  • Dave started the conversation

    I'd like to add some code to make these small images open in a lightbox rather than how they currently open in the same page. I do want to keep the formatting as it currently is, but just when a user clicks on each image it should open in a lightbox rather than a new white page.

  •  1,070
    ThemeNectar replied

    Hey Dave! Ironically there's an option for "auto lightbox" being worked on right now that will be available in the next release. It will do just what you're looking - provide a one click option to automatically convert image links into lightbox ones. Please sit tight, it'll be landing next week :)

    Cheers

  • Dave replied

    EXCELLENT! Thanks!

  • Dave replied

    I've finally updated to 4.5.2 from my previous version - can you tell me where/how to make my images open in lightboxes? I'm not seeing the "auto lightbox" option anywhere. Same link as before!

  •  8,839
    Tahir replied

    Hey Dave!

    Simply add the :

    rel="prettyPhoto"

    attribute to the anchor tag and it would make the image open in the builtin lightbox so it looks like this: 

    <a href="/wp-content/uploads/2014/04/mess.jpg" rel="prettyPhoto"><img class="alignnone size-full wp-image-3598" alt="mess136" src="/wp-content/uploads/2014/04/mess136.jpg" width="136" height="136"></a>

    Cheers


    ThemeNectar Support Team