Hello, When adding a YouTube URL to the editor to display a video, there is large padding on this page above the video which disappears when the video is started. See screen recording here: https://a.cl.ly/d5uDd5P1
The padding appears in Chrome and Firefox browsers. I’ve deleted the block and added it again and the padding remains.
Can anyone help with why the padding appears and how can it be removed?
Thank you, Bharat
The page I need help with: [log in to see the link]
Hi @bharatk, I can’t reproduce the issue on my site with TT3. The markup around the embed is different from the default. Do you use any plugin? What happens if you temporarily disable all the plugins? Does it solve the issue? If you can activate a plugin at a time, it should become clear which plugin is causing the trouble. Let me know how it goes.
I switched off the plugins and one made a difference which was the WP Code Lite plugin.
However, it doesn’t seem to the plugin itself that is causing an issue but more so a JavaScript embed in the body of pages (the plugin allows adding of scripts to the header, body and footer).
It’s specifically the following script causing the issue which is from VBOUT and is required to use their website tracking features:
I’m not sure exactly what that script does, but the markup around the video thumbnail has been altered to something WordPress doesn’t expect, and that’s causing the big gap.
You can try adding this custom CSS to your embed block.