How To Embed A YouTube Video in WordPress
Adding a YouTube video in a WordPress blog post is easy.
You don’t need to download the video and upload it to WordPress because WordPress supports auto-embedding for YouTube and other popular video hosting and social sites (Ted, Facebook, Vimeo, WordPress.tv, Instagram, and many others).
You can see the complete list of supported sites here.
What auto-embed means is that all you need to do is paste the URL of the video in plain text format and WordPress will automatically place the video into the post.
Let me show you how to do this:
- Go to the YouTube video that you wish to embed.
- Click on Share and copy the URL.
Now paste the URL into your WordPress post editor (it should not be hyperlinked). WordPress will automatically render the video and embed it into the post.
The YouTube video will now appear in your article.
Adding YouTube Video Using An Embed Code:
When you want to add a YouTube video into your blog post, the above method is fastest.
However, at times you might want to add video to other parts of your blog, like the widget area where auto-embedding is not an option.
Here you can use the (non-auto) embed feature of YouTube to get the embed code.
Go to the YouTube video.
- Click on Share.
- Click on Embed.
Here you can control the size of the video player, you can disable showing related videos, and you can do a few other things like removing the YouTube control button.
Once you have configured the settings, simply paste the embed code in the widget section you want to add.
And that’s it!
Embed YouTube Videos On WordPress
Adding video is useful for improving your articles. Using the auto-embed method of WordPress to show YouTube video in an article is the fastest and easiest method of doing this.
You can learn a little more about embedding in WordPress by reading this official help page.
So go ahead and embed a YouTube video in your next WordPress article!
Post a Comment