You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gutenberg 4.1 and 4.1.1 - Youtube video fills ENTIRE page #11085
Describe the bug
On Gutenberg 4.1 and 4.1.1 the youtube video now fills the ENTIRE PAGE over all other paragraphs [blocks] with giant spaces in between paragraphs. Only affects articles written in Gutenberg.
To Reproduce
Steps to reproduce the behavior:
Go to 'POSTS'
Click on 'ALL POSTS'
Clickon article that is affected.
Scroll down to 'YOUTUBE BLOCK'
Go to Advance CSS
The following CSS appears: wp-embed-aspect-4-3 wp-has-aspect-ratio
If you remove it, the youtube video returns to normal.
If another Admin comes into the article and updates the article, this CSS (wp-embed-aspect-4-3 wp-has-aspect-ratio) magically reappears.
Please note: I have removed this Advanced CSS (wp-embed-aspect-4-3 wp-has-aspect-ratio) from the editor, because this is an important article at the moment and I need people to be able to read it.
Expected behavior
For Youtube video to display normally
I tried to reproduce this on Gutenberg 4.1.1, but the YouTube embed appears fine. This is how it looks at my end. But, I do have wp-embed-aspect-16-9 wp-has-aspect-ratio on my advanced CSS section.
Are you seeing this happen only on Gutenberg 4.1.0, @Pikkals?
Tested on a local install of WordPress. WordPress 4.9.8 and Gutenberg 4.1.1 using Google Chrome Version 70.0.3538.67 (Official Build) (64-bit) on macOS 10.14 - Mac OS Mojave
changed the title [-]Gutenberg 4.1 - Youtube video fills entire page[/-][+]Gutenberg 4.1 and 4.1.1 - Youtube video fills ENTIRE page[/+]on Oct 26, 2018
I tested with WordPress 4.9.8 and Gutenberg 4.1.1 and the Twenty Seventeen 1.7 theme using Chrome 70.0.3538.77 on macOS 10.13.6 and I do see wp-embed-aspect-16-9 wp-has-aspect-ratio getting added to the Settings > Block > "Additional CSS Class" field and I think that is the expected behavior. Videos look good in my test and don't explode to fill the page as you described.
Recent work has been done to remove gaps that were appearing around some videos and to change the way responsive videos work whether or not the theme opts in using add_theme_support( 'responsive-embeds' ); (reference). Note: if a theme has opted in, you would see a "Media Settings" panel in the sidebar for the YouTube block (screenshot). It's possible the Hueman Pro have been working around this or have a separate solution or that the latest update makes a change they didn't anticipate.
It would be worth letting the Hueman Pro theme authors know:
Activity
arunsathiya commentedon Oct 26, 2018
I tried to reproduce this on Gutenberg 4.1.1, but the YouTube embed appears fine. This is how it looks at my end. But, I do have
wp-embed-aspect-16-9 wp-has-aspect-ratioon my advanced CSS section.Are you seeing this happen only on Gutenberg 4.1.0, @Pikkals?
Tested on a local install of WordPress. WordPress 4.9.8 and Gutenberg 4.1.1 using Google Chrome Version 70.0.3538.67 (Official Build) (64-bit) on macOS 10.14 - Mac OS Mojave
[-]Gutenberg 4.1 - Youtube video fills entire page[/-][+]Gutenberg 4.1 and 4.1.1 - Youtube video fills ENTIRE page[/+]Pikkals commentedon Oct 26, 2018
Hi arunsathiya
Actually on 4.0 I had this: #10109
It's got to do with responsive themes I think.
I will contact my Hueman Pro theme support as well, to fill them in on what's happening now.
Ok, I've emailed them and sent them to this issue: 11085
Pikkals commentedon Oct 26, 2018
Ok Hueman Pro have literally right this minute updated their theme to Hueman Pro 1.1.5
But it's still not working, I have to remove the Additional CSS Class for the Youtube video to return to normal.
designsimply commentedon Oct 26, 2018
I tested with WordPress 4.9.8 and Gutenberg 4.1.1 and the Twenty Seventeen 1.7 theme using Chrome 70.0.3538.77 on macOS 10.13.6 and I do see
wp-embed-aspect-16-9 wp-has-aspect-ratiogetting added to the Settings > Block > "Additional CSS Class" field and I think that is the expected behavior. Videos look good in my test and don't explode to fill the page as you described.Recent work has been done to remove gaps that were appearing around some videos and to change the way responsive videos work whether or not the theme opts in using
add_theme_support( 'responsive-embeds' );(reference). Note: if a theme has opted in, you would see a "Media Settings" panel in the sidebar for the YouTube block (screenshot). It's possible the Hueman Pro have been working around this or have a separate solution or that the latest update makes a change they didn't anticipate.It would be worth letting the Hueman Pro theme authors know:
Thank you for testing Gutenberg and for reporting the issue!