WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Video Tab Video Size

[Resolved] Video Tab Video Size

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Sebastien Dumont
    Participant

    @sebd86

    Try this.

    <iframe width="550" height="320" src="http://www.youtube.com/embed/9kU5Sp9d3LM?feature=oembed" frameborder="0" allowfullscreen=""></iframe>

    stoelwinder
    Member

    @stoelwinder

    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 );
    }
    Plugin Author Sebastien Dumont
    Participant

    @sebd86

    I’m glad it worked and thank you for the filter code. I will apply this to the documentation of the plugin.

    Plugin Author Sebastien Dumont
    Participant

    @sebd86

    I have updated the documentation with your filter stoelwinder and credited you for it.

    Ovidiu
    Participant

    @ovidiu

    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>

    Plugin Author Sebastien Dumont
    Participant

    @sebd86

    This topic has been resolved and the video appears to load and play for me on your webpage.

    Ovidiu
    Participant

    @ovidiu

    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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Video Tab Video Size’ is closed to new replies.