Embedding Youtube and Vimeo videos in Gutenberg is even easier than it was with the classic WordPress editor. Embed Blocks allow you to add content from other websites (videos from YouTube, tweets from Twitter, an event from meetup.com, etc.) into your own pages.
Embed Youtube and Vimeo Video On Gutenberg WordPress Editor
Firstly, hover your mouse over the Add Block icon. The plus sign in the upper left-hand corner within the Gutenberg editor.
Step 2: Embed Video Using Gutenberg
Secondly, scroll to Embeds. Under that section, you will see different formats of embeds you can add to your page. For the sake of this example, we’ll use the Embed option.
Depending on which type of embed you use, you will be prompted to add a link to the content you want to embed. In this example a Youtube video will be embedded, so a Youtube video link will be used.
Step 4 To Embed a Video Using Gutenberg
Finally, once you have added your link in the block, your embed content will appear. Remember to save and publish your page, when you’re finished.
That’s it, you’ll find over 30 different media providers to embed into your sites such as funny or die, wordpress.tv, and more.
WordPress Gutenberg Embed Block?
The embed block works the same way as the YouTube block. It simply requests your YouTube video URL and then creates a YouTube block from it.
Which Method of Embedding YouTube Videos is Best?
Neither method is better. Each method will create a YouTube block from the video URL, therefore the way you create the block is irrelevant.
Adding a Caption In Gutenberg WordPress?
A caption can appear underneath your Gutenberg embed video. In addition, we can add the caption text in a number of ways. You can use bold, italic, code and strikethrough. Moreover, we can convert text into links too and you can insert inline images.
Alignment & Width of Embed Vimeo or YouTube Videos In WordPress
When you click on the YouTube block, a number of alignment and width buttons will appear at the top of the WordPress editor. From here you can align the video to the left, center or right. Videos can also be wide-width or full-width.
Changing the URL of YouTube Video
In short, is possible, All you have to do is select the YouTube block and then click on the pencil icon at the top of the WordPress editor. This will allow you to enter the video URL again.