Streaming live at 10am (PST)

Stop YouTube video playing when closed (CMS modals)

I have a CMS collection of videos, each with a popup video. The popup + HTML embed video work well, but the video doesn’t stop playing when the popup is closed. I’m pretty sure the only way to do this is with some javascript, but I’m not sure… I’ve been trying all day and can’t figure out how to do it, thanks!

I’ve already taken a look at these forums and they didn’t work for what I’m trying to do:
Stop a YouTube Video
How to Stop a YouTube Video After Closing Modal
Stop Vimeo/YouTube Video After Closing Modal


Here is my site Read-Only: LINK

Here’s how to do it:

I used this tutorial to make custom popup modals and it works great. So easy + just code copy/paste. https://cms-lightbox-galleries.webflow.io