Last Updated: February 25, 2016
·
349
· christurnbull

Wordpress embed default size

Only administrators can embed iframes or objects when Wordpress is setup as multi site. Code will be stripped away if authors/editors try to embed code.

Use oEmbed to get around this http://codex.wordpress.org/Embeds

Set the default size of all embedded videos by adding this code to the themes functions.php

add_filter( 'embed_defaults', 'bigger_embed_size' );
function bigger_embed_size()
{ 
  return array( 'width' => 320, 'height' => 280 );
}