Add lightbox_video attribute to image element

I am trying to display video in a lightbox using a click event for image. The functionality is working but I cannot add the attrribute lightbox_video=true to the image using the image element. Is it possible to add this attribute without using image shortcode?

Without the attribute, the video plays in fullwidth. I like the styling for video to be like modal in the centre.

Hi there,

Unfortunately, it is not possible to do it in the Image Element as the code is generated and you can not inject an attribute into it. You are bound to use the Image Shortcode.

Thank you for your understanding.

Thanks @christopher.amirian

Would be good if we can somehow add this feature as a checkbox to Image element someday. Many thanks again.

Hi there,

We certainly appreciate the feedback! This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive. Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.