Viewing 9 replies - 1 through 9 (of 9 total)
  • add data-rel=”lightbox” to the image’s link

    Thread Starter zensoft

    (@zensoft)

    Thanks, but not it is working.
    This is the link with the change

    <img class="aligncenter wp-image-34 size-full" src="https://www.wordpressnapoli.it/wp-content/uploads/2015/11/Wordpress-Backend.png" alt="Wordpress Backend" width="1273" height="589" data-rel="lightbox"/>

    because it does not work?

    Plugin Author dFactory

    (@dfactory)

    You added data-rel to image, while it should be added to image link.

    <a href="link" data-rel="lightbox"><img ... /></a>

    Thread Starter zensoft

    (@zensoft)

    Ok thank you, I understand.
    It works, but you can not do it automatically?
    You must always put the code by hand?

    Plugin Author dFactory

    (@dfactory)

    Nope. You have options for this in plugin settings. But if you want to use it manually in the theme, then yes, it is required.

    Thread Starter zensoft

    (@zensoft)

    In the next version you will do this implementation? That is, to enter the lightbox effect automatically into single image?

    Angelo

    (@angelo-pagano)

    Instead of data-rel=”lightbox” is it possible specify a class?

    Regards
    Angelo

    Thread Starter zensoft

    (@zensoft)

    I do not know Angel, but the suggestion that they gave me work, I just hope that they will automatically

    Plugin Author dFactory

    (@dfactory)

    nope, it will not work for a class. the RL is using data-rel=”lightbox” (or your specified selecter) as the lightbox trigger.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Responsive Lightbox for single image’ is closed to new replies.