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
Today I decided to invest 1 hour optimizing themightymo.com. Below are the actions I took along with the results. Speed Benchmarks and Initial Observations Before starting on today’s speed optimization, Google Pagespeed Insights scored us as a “44”. There’s some files loading from the wp.com cdn (e.g. Jetpack’s cdn) – Google is penalizing me for…
Here’s a quick tutorial about how to give 2 IAM users web access to an S3 bucket.
I asked a design group I’m part of where they go for website design inspiration, and here are their recommendations