Modal with embedded video

Hi,
as discussed here


and here

I want to build a slider with images.
Clicking on the image opens a modal with a video.
The video should possibly be fullscreen on every screen.
The toggle as an image to open the modal works fine, but I cannot make it to have the video embed correct.
It is to small or to big.
When I use data-rvt-offscreen-reset, the video is invisible.

Giving the Modal element a Custom CSS to reduce the left/right padding, does not work on mobile, only in CS preview:

@media screen and (max-width: 767px) {
$el.x-modal {
padding-right: 0.5em;
padding-left: 0.5em;
}
}
Edit: Now I see the left right padding depends on the width/height of the close icon!
Is there a way to make it independent?

Tested on Safari and Firefox on Macbook and iPhone X.


Hope you can help!
Best regards,
Hannes

Hey Hannes,

I see you’ve placed the Youtube iframe code inside a Text element. You need to use the Video element moreover that the data-rvt-offscreen-reset is for the Video element.

Please correct your setup first and tell us the issue with it.

Thank you. The Video Element is much better, because I can control the iframe. :+1:
But the strange behavior is still there:
Setting data-rvt-offscreen-reset as custom attribute to the Video Element makes the Video invisible.
I send you credentials, in case you need it.

Hi Hannes,

I have tried to check from the WordPress admin dashboard but unfortunately, the given credentials do not work. Can you please check and reshare it again?

Thanks

Sorry for the inconvenience!
Here are the correct credentials.
I have tried - they do work.

Hi Hannes,

I have added the data-rvt-offscreen-reset custom attribute and found the issue you described here. But I did the same in my local environment with the latest version of Pro and it worked perfectly fine.
It seems, there might be some different reasons behind your issue, and I would like to suggest troubleshooting the following common issue to help us recognize the reason.

1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN

If you discover that an issue is coming from custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above helps, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access to the secure note, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Thank you.
The GDPR plugin Complianz is causing the issue.
I have written to their support and will report any solution here.

You are most welcome @salilou

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