Simply paste the following code on your functions.php file. Don’t forget to adjust size on line 2 and 3.
function mycustom_embed_defaults($embed_size){
$embed_size['width'] = 586; // Adjust values to your needs
$embed_size['height'] = 500;
return $embed_size;
}
add_filter('embed_defaults', 'mycustom_embed_defaults');
Credits goes to Shailan. Thanks for the cool tip!
Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!
How to modify size of embedded videos