Need lightbox to come up on top of content modal

Hi! We have a page with several content modal windows for different cast members. When a modal window comes up we have the person’s bio and a button linking to a YouTube video that we want to come up in a lightbox. When we click the video link, the lightbox comes up underneath the modal window and we have to close the modal window to see the video. Is there a way to change the order of the content modal window with the lightbox so the video lightbox comes up on top?

Hi There @jquinn33

Thanks for writing in! I have checked your requirement and regretfully, it is currently not possible since each one is in their own modal.

One alternative solution would be to use jQuery to show/hide your video when clicking on your link. You can see an example here (https://codepen.io/bntzio/pen/jrbJJo) or else try utilizing a plugin for that and see if that helps (https://wordpress.org/plugins/wp-showhide/).

Thanks!

Thanks so much for the fast response! I’ll look into your suggestions! :slight_smile:

One more question, is it possible, when the button inside the modal window is clicked, for that modal to close and the video lightbox to open?

Hey There,

That is technically possible. However, that would fall beyond the scope of our support since it would require custom development. You need to hire a developer to help you with this.

Thank you for understanding.

Understood! Thank you!

Hi there,

You might want to check some Javascript tutorials to achieve what you are aiming to do:

https://www.w3schools.com/jquery/jquery_intro.asp
http://api.jquery.com/trigger/

Hope this helps.

Thank you! I was actually able to do what I needed quite easily by using the “Popup Maker” plugin for just the video button inside the modal window. The video modal came up, played the video, then I’m able to click anywhere outside of it to close it, displaying the bio modal that was behind it.

Thank you again for all the tips!! :slight_smile:

Hi,

Glad you found that plugin and thank you for sharing.

Cheers!

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