Site logo

Archived topic

Gutenberg Embed Blocks not showing correct aspect ratios on front end

4 replies · Started by Samantha on December 8, 2018

Viewing posts 1–5 of 5

Hi,

I am having a problem where video embeds are not showing the correct aspect ratio on the front end in Generatepress. I have changed over to Wordpress 2019 theme to check and the issue goes away.

I believe it has something to do with the wp-embed-aspect-16-9 wp-has-aspect-ratio class that is applied in gutemberg embed blocks.

Could you please tell me how to fix the issue?

Hi there,

can you provide access to the Site and to a page where the embed is not working correctly? Currently getting a 403 Forbidden on the link you provided.

Any chance you can try adding this function to your site?:

add_action( 'after_setup_theme', function() {
    add_theme_support( 'responsive-embeds' );
} );

Let me know :)

Thank you! That seems to have fixed it!

Much appreciated! :)

You're welcome :)

This archived topic is closed to new replies.