If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

WordPress. How to change the dimensions of an embed video

Hello,this tutorial will show you how to change the dimensions of an embedded video in WordPress Templates.

Please, navigate to the Posts -> All Posts -> Add new section in site admin panel.

  1. Add your embedded video code to the page

    WordPress. How to change the dimensions of an embed video

  2. Then navigate to the Appearance -> Editor to edit function.php file

  3. Add these lines of code to the end of the file

  4. add_filter( 'embed_defaults', 'bigger_embed_size' );
    		
    function bigger_embed_size()
    {
    return array( 'width' => XX, 'height' => YY );
    }
  5. Here XX and YY are the needed values.

    WordPress. How to change the dimensions of an embed video1

  6. Click on the Update file button and check the changes on site frontend.

  7. Now you know how to change the dimensions of an embedded video in WordPress. Thank you for attention!

Feel free to check the detailed video tutorial below:

WordPress. How to change the dimensions of an embed video