Hi,
How can I control youtube video size
(Placed into color section).
Thanks,
Yud
Hi yudkoren!
Youtube videos can have Width & height, which you can add to them, if you import with iframe.
If you just place a link, try using the following filter
add_filter( 'embed_defaults', 'change_embed_size' );
function change_embed_size() {
// Adjust values
return array('width' => 100, 'height' => 100);
}
where you can set width and height
Regards,
Basilis
Not Working.
I want to reduce video player size…
Hey!
You can better control the video size by using the direct embed code of the youtube video in a text element or code block:
Example:
<iframe width="640" height="360" src="https://www.youtube.com/embed/-S1MH6Zqxq4" frameborder="0" allowfullscreen></iframe>
Cheers!
Dake