I was using the code below to set the default size for embeded objects in my posts. It worked before for me but now it no longer works.
add_filter( 'embed_defaults', 'bigger_embed_size' );
function bigger_embed_size()
{
return array( 'width' => 935, 'height' => 525 );
}
I also used this css so that when viewed from mobile devices the width of the embeded object would be so tall.
embed,
iframe,
object,
script,
video {
margin-bottom: 1.6em;
max-width: 100% !important;
vertical-align: middle !important;
min-height:250px;
}
None of these options are working anymore does anyone have a solution.
add_filter( 'embed_defaults', 'bigger_embed_size', 100 );
add_filter
actually running? trydie('HERE')
right before it and ensure that "HERE" is the only thing printed to the screen. Otherwise try looking for PHP errors.