Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #544128

    Hi,
    How can I control youtube video size
    (Placed into color section).

    Thanks,
    Yud

    #544187

    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

    • This reply was modified 8 years, 12 months ago by Basilis.
    #544226

    Not Working.
    I want to reduce video player size…

    • This reply was modified 8 years, 12 months ago by yudkoren.
    #544275

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.