Adding a YouTube video to a self-hosted WordPress website or blog is fairly easy. All you need is the embed code provided by YouTube.
If you prefer using a plugin, try one of these (I can’t recommend any of the ones I’m linking to as I’ve never used them, but you should be able to find one you like). If you don’t mind paying for a reliable plugin, here’s one I do use and recommend.
Okay, let’s get going…
Get over to YouTube to find a suitable video for your post. This is easy if you’re using your own video. If you’re using somebody else’s but don’t have a specific video in mind, you’ll have to do a little searching.
Enter a phrase into the search box.
For this post, I wanted to find a video that appeals to just about everyone. I thought about classic car chases from the movies, memorable TV adverts or some awesome GoPro footage of a base-jumper doing his thing. None of these worked for me.
So, I chose the guy who jumped to earth from the tip of space, Felix Baumgartner. That blew us all away, right?
Now you’ve found a suitable video, it’s time to get the embed code so you can add it to your page.
Look for the Share link, which you’ll find in the menu options over on the left, under the video, and click it:
When you first click Share you will see something like this:
Most of the time you want to start a video at the beginning, but if you want to start it at another place, enter the time in the Start at box (bottom left-hand corner).
To get the code, click on the Embed link.
You’ll see this (the code you need is usually highlighted blue, but I removed the highlight for this screenshot).
YouTube makes its videos available in a few different standard sizes, or you can choose a custom size if you prefer. To access the options, click on Show More.
If you want to use a custom size, enter the width you want (in pixels) in the left-hand box. YouTube automatically adds the height to the right-hand box (you can do it the other way around too).
If you want to use a standard size, choose it from the dropdown menu. When you choose a standard size, YouTube highlights the code for you, if you choose a custom size, it doesn’t (I don’t know why!).
Now copy the code and move over to your blog post.
In your post, there are two types of editor: Visual and Text.
When embedding a YouTube video, you must use the Text editor as you are pasting code. You switch between the two using tabs in the top right-hand corner of the writing area.
Make sure you choose Text, work your way through the post to the place where you want the video to appear, and paste in the code.
Finish editing your blog post in the usual way and hit publish/update. The video will now be inside your blog post so visitors can watch it without leaving your site.
Just like this.