Answer the question
In order to leave comments, you need to log in
How to display youtube video in modal window?
tell me please!
connected lightbox to enlarge photos, videos, etc.
photos increase, everything is fine, here on this page
music.frontendwork.esy.es/photo.html
when I try to display video in a pop-up window, nothing happens
music.frontendwork.esy.es/video.html
what could be the error?
Answer the question
In order to leave comments, you need to log in
You inserted them yourself as previews of the videos, instead of pictures, and they are displayed using an iframe, and it overrides the link to call the lightbox. So you can either replace the thumbnails with pictures, and just open the video in a lightbox, or add something like this:
.video_block iframe {
position: relative;
z-index: -1;
}
you need to put a picture on the video block and when you click on it, open the video
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question