• Resolved calskinator

    (@calskinator)


    I was using shadowbox-js but the plugin doesn’t work with WP anymore and the scipt itself I can’t get to work so I need a replacement and I’m hoping this will be it!

    I need to have text links that open images in a scrollable gallery. Not image thumbnails. I’ve been searching for hours and can’t figure out how to program text links with this plugin to open images in the lightbox. Any ideas?
    Thanks!

Viewing 1 replies (of 1 total)
  • Hi, yes this is possible. Try something like the following example code for three images in a HTML block (note: this won’t work well in the classic editor because that will break the code)

    
    <a href="https://link.to/the/first/image.jpg" class="fancybox image" rel="mygallery">Start my gallery</a>
    <a href="https://link.to/the/second/image.jpg" class="fancybox image" rel="mygallery"></a>
    <a href="https://link.to/the/third/image.jpg" class="fancybox image" rel="mygallery"></a>
    
Viewing 1 replies (of 1 total)
  • The topic ‘Can a text link open an image in the lightbox?’ is closed to new replies.