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 to change YouTube embed size in WordPress; afterward, you will be able to do it on your own.
Change YouTube Embed Size in WordPress
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.
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.
Leave a Reply