Video Lightbox from text

Hi all,

I would like to launch a video lightbox from text in a text element such as from the words “click here”. Is that possible?

Thanks,

Chris

Hello Chris,

Thanks for writing in! Are you using the legacy shortcode responsive lightbox? If that is the case, you will have to create a text link and add a custom class. For example;

<a class="my-lightbox" href="the-video-link">some link text</a>

And then your responsive light box shortcode could be like this:

[lightbox selector=".my-lightbox" deeplink="true" opacity="0.875" prev_scale="0.75" prev_opacity="0.75" next_scale="0.75" next_opacity="0.75" orientation="vertical" thumbnails="false"]

which shows that my-lightbox class is used as the selector to launch the lightbox.

Meanwhile, if you are using the Contact Area Modal and have inserted the embed video code, Regretfully that can’t be possible to launch a content area modal from a text link. You can make the modal link looks like a text though. Please check the module article for more clarification.

Hope this helps.

Thanks @ruenel i will give that a go :slight_smile:

You’re always welcome Chris!

Cheers.

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