• Hi there,

    I’ve installed the recommended plugin “Responsive Lightbox”, but i can’t use it when i add the Alx Video sidebar widget. So what happens is that my videos don’t open in the lightbox as they should, showing up really small

    Am i doing something wrong, or i really can’t use the rel=”lightbox” in this widget?

    Thanks!

Viewing 1 replies (of 1 total)
  • Hi Yasawas. I don’t think the plugin uses the “rel” attribute any more. This is from one of the posts on the plugin support forum:

    There was rel attribute (instead of data-rel) used as lightbox trigger in the past (before 1.5). This however was not passing w3c validation, so we switched to data-rel but tried to kept manual usage of rel compatibility. That’s the background of the issue.

    When I tested the plugin it added the “data-rel” attribute automatically to images:

    <a href="https://mysite.com/wp-content/uploads/2015/07/Untitled-design3.png" data-rel="lightbox-0" title="">

    But it didn’t add it to any embedded videos, in the content or a widget. What I did find that works is using a text widget and code like this:

    <a href="https://www.youtube.com/watch?v=nKo04a2s2SI" data-rel="lightbox-0"><img src="https://img.youtube.com/vi/nKo04a2s2SI/0.jpg" alt="My Video"></a>

    The href is the link to the video. The img is a thumbnail taken from the video.
    Reference here.

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Alx sidebar video lightbox not working’ is closed to new replies.