
YouTube videos are a great way to add visual content to your WordPress website. However, the default size of the video may not be ideal for your desired presentation or layout. Luckily, you can easily change YouTube embed size in WordPress.
If you don’t know how to do it, then you are in the right place. Here, I will show you the process of changing YouTube embed size in WordPress; afterward, you will be able to do it on your own.
Supercharge Your WordPress Block Editor!

Method 1: Changing YouTube Embed Size Using Embed Code
The simplest way to resize an embedded YouTube video is to modify the embed code directly. When you copy the embed code from YouTube, it will include a width and height parameter. You can simply adjust these values to your desired dimensions.
To do this, follow these steps:
Step 1: Open The YouTube Video Embed Link
Open the YouTube Video that you want to embed. Click on the share button and hit ‘Embed’.
Here, you will find the embed code for the video.
Step 2: Change YouTube Embed Size
At the beginning of the code, you will find the embed size (width, height) of the video.
Set the video width and height as you like and copy the code.
Step 3: Embed YouTube Video
Now open the page post where you want to embed the YouTube video. Click on the add block button and search for the ‘custom html’ block.
Insert the block by clicking on it. Paste the code that you copied earlier in the blank field.
Here, I have set the width as 400 and the height as 300. Hit the publish or update button, and you are done.
Method 2: Changing YouTube Embed Size Using Group Block
If you somehow forget to change the video size from the embed code then, you can use this method.
Step 1: Embed the Video
Open the page/post and insert the YouTube block.
Paste the youtube video link, insert the ‘URL’ field.
Hit the ‘Embed’ button, and your YouTube video will be embedded.
Step 2: Change the Block to Group Block
Select the YouTube block and then convert it to the ‘Group’ block.
Step 3: Change YouTube Embed Size
Now, open the block settings and resize the block.
With this option, you can make your YouTube video of any size you wish.
Method 3: Changing YouTube Embed Size Using UltimateBlocks Plugin
If you would like to embed YouTube videos professionally, then there is no choice other than Ultimate Blocks. It comes with advanced features and functionalities that lets you do more then the regular YouTube block.
Step 1: Insert Advanced Video Block
Open the page/post where you want to embed YouTube video. Click on the add block button and search for ‘Advanced Video’.
Insert the block by clicking on it.
Step 2: Upload a Video
You can upload any video from your computer or choose one from the media library.
If you wish to insert video using URL, then click on the ‘Insert from URL’ and paste your video link.
Step 3: Change Embed Size
Now open the block settings.
Toggle the ‘Autofit video embed’ option and then adjust the size as you require.
The best part of Advanced Video Block is that you can video from any URL. Moreover, the rest of the blocks of Ultimate Blocks provides you more then the regular blocks. You will always be able to know more about the Ultimate Blocks from their website.
Last Words
By following these steps, you can easily resize embedded YouTube videos in WordPress and ensure that they look great on your site. If you liked the post, then please share it with your friends, and don’t forget to leave your thoughts in the comment box below.
Changelog
- Updated 2024-09-14 (Uzzal Raz Bongshi)
- Added ‘Method 2: Changing YouTube Embed Size Using Group Block’.
- Added ‘Method 3: Changing YouTube Embed Size Using UltimateBlocks Plugin’.
Leave a Reply