YouTube Consent Banner creates white space above Video
-
Theme: Ocean WP
Tested Browsers: Chrome, Firefox, EdgeThe YouTube consent banner creates a :before class for div class “wp-block-embed__wrapper” with a padding-top value. This happens twice – first it gets the value of 50 %, then it’s overwritten with a value of 56.25 %.
Before you give consent, this padding-top creates a lot of white space before the video, and places the consent banner not center aligned over the video, but at the top of it. Only after giving consent the white space goes away and everything looks normal.
I can override that padding-top per custom CSS, so it looks how it should, but when you then give consent – then the whole video disappears, because that same padding-top value is somehow responsible for the height of the video-container.
Does anybody know a fix or workaround for that issue?
The page I need help with: [log in to see the link]
- The topic ‘YouTube Consent Banner creates white space above Video’ is closed to new replies.