Page 1 of 1

Lightboxes from YouTube videos do not appear, but audio from video works

Posted: Mon Dec 07, 2020 1:47 pm
by contextbi
Hello! YouTube lightboxes do not work on the site. When you click on the preview, the light box does not appear, but the sound from the video works. Please see this block on the website https://softcds.ru/ - http://joxi.ru/YmExN9MTMYKdLr . But if I remove all layers from the project, leaving only the block with the YouTube preview, then the pop-up window with the video appears. Please look at the website: https://bicontext.ru/test/cdssoft/

I have attached 2 project files: https://drive.google.com/drive/folders/ ... sp=sharing
In project 1, I removed all unnecessary layers. Lightboxes work correctly in it.
In project 2, I did not remove all layers from the site. Lightboxes with youtube video do not work in this project.

I think some layers may be blocking the appearance of lightboxes

Re: Lightboxes from YouTube videos do not appear, but audio from video works

Posted: Mon Dec 07, 2020 2:14 pm
by Pablo
Where do I need to look for the lightbox?
There are hundreds of elements on the page!

Note: it is very confusing if you leave all content on the page.
If you need help then please remove all element that are not relevant to your question.

Related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=82134

Re: Lightboxes from YouTube videos do not appear, but audio from video works

Posted: Mon Dec 07, 2020 2:31 pm
by contextbi
Lightboxes in this block - http://joxi.ru/YmExN9MTMYKdLr. Above I indicated a link to the screenshot, but I inserted it incorrectly

Re: Lightboxes from YouTube videos do not appear, but audio from video works

Posted: Mon Dec 07, 2020 3:41 pm
by Pablo
Because you have so many layers, the standard z-index of the lightbox is not high enough.

You can solve this by adding:

Code: Select all

<style>
.mfp-bg
{
   z-index: 11042 !important;
}
.mfp-wrap
{
   z-index: 11043 !important;
}
</style>

Re: Lightboxes from YouTube videos do not appear, but audio from video works

Posted: Tue Dec 08, 2020 9:27 am
by contextbi
Thank you for your help .
Lightboxes now work correctly.

Your support is the fastest and most efficient!