The WordPress YouTube block is a free Gutenberg block by which you can embed videos from the YouTube streaming platform into your blog posts and pages. The block is available both on the Gutenberg and Classic editor.
In this short article, I will show you how to use the WordPress YouTube Block.
Step 01: Find and Add the YouTube Block to the Editor
In the Gutenberg block editor, click on the (+) block inserter icon. Search for YouTube in the block inserter and select the YouTube block. Add the block to the editor.
![](https://pressberg.com/wp-content/uploads/2024/06/Find-and-Add-the-YouTube-Block-to-the-Editor-1024x550.webp)
You can see the block is added to the editor.
![The YouTube block is added to the editor](https://pressberg.com/wp-content/uploads/2024/06/The-YouTube-block-is-added-to-the-editor.webp)
Step 02: Copy-Paste a YouTube Video Link to the Box
Go to YouTube.com. Copy the URL of the YouTube video you like.
![Copy a YouTube video URL](https://pressberg.com/wp-content/uploads/2024/06/Copy-your-desired-YouTube-video-link.png)
Paste the YouTube video URL into the box provided in the block. Hit the Embed button.
![Paste the YouTube link to the block](https://pressberg.com/wp-content/uploads/2024/06/Paste-the-YouTube-link-to-the-block.webp)
You can see the YouTube video has been embedded to the editor.
![YouTube video is embedded](https://pressberg.com/wp-content/uploads/2024/06/YouTube-video-is-embedded.webp)
Step 03: Customize the WordPress YouTube Block
Under the Settings tab on the right sidebar, toggle on the option Resize for smaller device. This will perfectly display your videos on small-sized mobile phones and devices.
![Customize settings of the WordPress YouTube Block](https://pressberg.com/wp-content/uploads/2024/06/Customize-settings-of-the-WordPress-YouTube-Block.webp)
Next, go to the Styles tab. If necessary, you can customize the margin to modify the dimension of the block.
![Stylize the WordPress YouTube block](https://pressberg.com/wp-content/uploads/2024/06/Stylize-the-WordPress-YouTube-block.webp)
Thus, you can use the WordPress YouTube block on the Gutenberg editor.
Conclusion
You can use the WordPress YouTube block in various places on your website, such as blog posts, landing pages, product pages, or any other area where you want to include video content.
But always remember to follow the copyright laws and ensure that you have the necessary permissions to use the YouTube videos you embed on your website.
I hope this helps! Let me know in the comment section if you have any further questions.