Try this.
<iframe width="550" height="320" src="http://www.youtube.com/embed/9kU5Sp9d3LM?feature=oembed" frameborder="0" allowfullscreen=""></iframe>
Thank you, that worked! And to make it automatically apply these size requirements, I edited the functions.php file and added the following:
add_filter( 'embed_defaults', 'bigger_embed_size' );
function bigger_embed_size()
{
return array( 'width' => 550, 'height' => 310 );
}
I’m glad it worked and thank you for the filter code. I will apply this to the documentation of the plugin.
I have updated the documentation with your filter stoelwinder and credited you for it.
Unfortunately the code for functions.php does absolutely nothing for me. Check it out live here: http://www.ict-consult.co.za/shop/car-seats/maxi-cosi-rodi-car-seat/
Any ideas?
The embed code is and the above code from my functions.php should have worked, right?:
<iframe width="640" height="360" src="http://www.youtube.com/embed/Zp6fUHSjHkI?feature=player_detailpage" frameborder="0" allowfullscreen></iframe>
This topic has been resolved and the video appears to load and play for me on your webpage.
BUT the initial question was about the size of the VIDEO. THE youtube video shown in my example is 640px width and I am using this code:
add_filter( 'embed_defaults', 'bigger_embed_size' );
function bigger_embed_size()
{
return array( 'width' => 550, 'height' => 310 );
}
But it doesn’t get “resized” down to 550px width…
Shall I open a new thread?