Youtube size is a banner

Hi there!
New weird problem with wordpress 5.0 update: my YouTube embed became banners instead of rectangle. Where do I fix that? (see link).

It did that on at least two of my latest articles with videos.
Thanks!

Hey Yannick,

I’ve replicated the issue in my test site using the WordPress Embed shortcode.

Please use X’s Responsive Video shortcode or WordPress oEmbed.

Using oEmbed, you just paste Youtube’s Video URL or the Share URL.

I’ll post this in our issue tracker so our development team would be made aware of this case.

Thanks.

Hi there!

I tried both solutions but it didn’t work. I also don’t have the same option you have (paste as plain text? Can’t read it well because of the quality of the video where you do it).

WordPress oEmbed is an extension? I couldn’t find it.

Thanks!

Hello Yannick,

WordPress oEmbed is already built in with WordPress core.
Simply paste the youtube link instead:

https://www.youtube.com/watch?v=FLcPomxl900

And if you are using the embed code, it must be this code:

<iframe width="560" height="315" src="https://www.youtube.com/embed/FLcPomxl900" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Hope this helps.

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