• Resolved melanie bund

    (@melanie-bund)


    Hi am using masonry jquery gallery (not a plugin) and would like to activate responsive lightbox fancybox theme manually, is there a way to do this?
    below a snippet of the code is not catching it

    echo '<div class="grid-item"> <a class="fancybox" rel="gallery" href="'.$url.'"/><img src="'.$url.'" /></a>';
    echo '<div class="caption"><p class="h7">'.$description.'<p></div></div>';

    thank you in advance
    Melanie

    https://wordpress.org/plugins/responsive-lightbox/

Viewing 1 replies (of 1 total)
  • Plugin Author dFactory

    (@dfactory)

    It should work fine, but you’d need to slighly modify the code:

    instead of:

    <a class="fancybox" rel="gallery" href="'.$url.'"/>

    try
    <a class="fancybox" data-rel="lightbox" href="'.$url.'"/>

    or
    <a class="fancybox" data-rel="lightbox-gallery-1" href="'.$url.'"/>

    or, if you’re using version below 1.6
    <a class="fancybox" data-rel="lightbox[gallery-1]" href="'.$url.'"/>

    Furthermore, if you use masonry with ajax loaded images, enable the custom events in RL settings leaving the default.

    Regards,
    Bartosz / dfactory

Viewing 1 replies (of 1 total)
  • The topic ‘add responsive lightbox to masonry manually’ is closed to new replies.