Today I had an issue where the Youtube Gutenberg block in WordPress was not maintaining the aspect ratio across devices. Once I discovered the cause of the issue, the fix was simple.
Add this code to functions.php to fix the Youtube block’s responsive issues
To fix the responsive issues with the Youtube block, simply add the following code to your functions.php file in your theme (or, alternatively, put it in your functional plugin):
// Add support for responsive embedded content. add_theme_support( 'responsive-embeds' );
That’s it! Was this helpful?
More posts from themightymo.com
As part of our summer celebration, we want to offer you this package at a great price: $499 – WordPress blog or website – Theme customization – Hosting for a year – Domain registration or transfer This is a great deal for anyone looking to get started with a great website! Contact us today!
Hello! I am excited to introduce “TheMightyMoo!”, our first WordPress theme template available for free download and public consumption! YEAH!!! HUZZAH!!! *celebration* To see it in action, visit Net Impact Minneapolis and TobyCryns.com. Here is a screenshot of the default installation: TheMightyMoo! is a fully-customizable accordion theme that uses the MooTools framework to display posts.…