- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
WordPress. How to change the dimensions of an embed video
February 8, 2017
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.
Add your embedded video code to the page
Then navigate to the Appearance -> Editor to edit function.php file
Add these lines of code to the end of the file
add_filter( 'embed_defaults', 'bigger_embed_size' ); function bigger_embed_size() { return array( 'width' => XX, 'height' => YY ); }
Here XX and YY are the needed values.
Click on the Update file button and check the changes on site frontend.
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