Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27695

    forceWERK
    Participant

    Okay, wow. I have to write my support ticket again. This very annoying system didn’t put my post through…

    Short version: Responsive Lightbox & Gallery works perfectly fine. As soon as I activate the PhotoSwipe Extension (which I spent money for) the lightbox doesn’t work anymore….

    h t t p s : / / w w w .forcewerk.com/2018/wordpress/portfolio/auto-guangzhou-2017/

    Thanks!

    #28164

    Bartosz
    Keymaster

    Hi,
    We’ve checked your site and it seems it’s using an outdated syntax for the lightbox.
    For example rel=”lightbox” instead of data-rel=”lightbox” for single images.
    Is this a custom build theme?

    #28269

    forceWERK
    Participant

    Hi Bartosz, that has indeed been the problem! I’ve just modified the code to data-rel=”lightbox” and now it works! You made my day! Thanks a lot! Regards

    PS: Quick additional question. Would it be possible to have PhotoSwipe not only show the pictures within one gallery but also the embedded vimeo video (iFrame) as seen on my site?

    #28357

    Bartosz
    Keymaster

    Just please try addin the same data rel attribute to the video, it’s not very consistent but it might work.

    To be precise, the best syntax for galleries is:

    <a href="img url" data-rel="lightbox-gallery-1">thumbnail</a>
    <a href="img url" data-rel="lightbox-gallery-1">thumbnail</a>
    <a href="video url" data-rel="lightbox-gallery-1">thumbnail</a>

    And if you have another gallery just set the data-rel to lightbox-gallery-2, 3, 4 and so on.

    RLG is doing the same internally, but for custom galleries this is the way to go.

    #29103

    forceWERK
    Participant

    Thank you! However, since the video is embedded due to an iFrame I can’t manipulate the code and add the data-rel tag to the video (as far as I know). Is there any other way to have an embedded Vimeo video shown within a gallery of pictures?

    #29486

    forceWERK
    Participant

    bump
    Anybody?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.