[Resolved] Gutenberg Embed Blocks not showing correct aspect ratios on front end

Home Forums Support [Resolved] Gutenberg Embed Blocks not showing correct aspect ratios on front end

Home Forums Support Gutenberg Embed Blocks not showing correct aspect ratios on front end

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #751810
    Samantha

    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?

    #752082
    David
    Staff
    Customer Support

    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.

    #752396
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #752422
    Samantha

    Thank you! That seems to have fixed it!

    Much appreciated! πŸ™‚

    #752427
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.