RC4: Lightbox shortcode stopped working

I am not sure if this happened with some earlier betas, but a site that had lightbox shortcodes working is now not showing them. They were showing videos.

The lightbox gets fired-up, but it contains nothing now.

This is the complete code:

<a class="ltbx-video" href="#" data-options="thumbnail: '#', width: 1080, height: 608">
    <img src="#" class="ltbxvid">
</a>
[lightbox selector=".ltbx-video"]

Thanks! I’m worried this might be an issue with the jQuery changes in the most recent version of WordPress. I can’t seem to get it to open an image right now. Will keep looking into it.

1 Like

Yeah, that WP change is not cool. Lot of websites rely on the responsive shortcode, and I see Support requests popping up already regarding this.

I think this version should include at least the patch for the iLightbox, if not the new lightweight lightbox solution you were planning to include in future update.

The important thing for the lightbox is to keep videos responsive as well. I am trying out various alternative solutions, and they all lack this or that. Especially when it comes to video.

In my opinion, the final solution should be something that can be enabled for a single post/page, post type or globally. It should also be stylable if possible, like the Content-area modal element.

1 Like

That would be very nice.

1 Like

Quick update on this. Considering this is broken as of WordPress 5.6 and not a regression in Pro 4.0, we’re going to move forward with the official release and come back to solving this as soon as possible in a point release.

2 Likes

Hey everyone,

iLightbox should be working again after one of the recent point releases. I very fortunately stumbled into the solution while fixing another issue. In jQuery 3.0 (the new default as of WordPress 5.6) the outerHeight function has a different return value and it broke a few other things in the theme (all fixed now).

1 Like