Categories

Featured templates

WordPress. How to change the dimensions of an embed video

Daisy Cooper February 8, 2017
Rating: 5.0/5. From 2 votes.
Please wait...

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
Professional Wordpress Themes
This entry was posted in WordPress Tutorials and tagged embed, video, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket