In this post I describe essential steps on how to embed YouTube video in WordPress. This includes:
- embedding video in the text
- embedding video in the sidebar.
Having videos in your post or page is one of many factors for improving ranking of your site. Some of most important of these factors I have presented in my recent post.
How to Embed YouTube Video – Practical Steps
I shall describe the process by using one YouTube video which I actually embedded into my site on mountain climbing.
1. So when I choose one video, I check it it has this under the video window:
2. You see the sign ‘Share‘ under the title. If I click on it, I see this:
So now I can copy the given link and use it as an hyperlink in my text. The procedure of adding hyperlinks in posts and pages is described in my another post.
Another option is to embed the link into your text.
3. Hence, I click onto ‘Embed‘ button and this gives the following:
4. Under the picture above you see ‘Video size‘ tab. You can choose the size in the menu. When you click it shows this:
When you choose the size which you want, you will notice that the iframe link above the picture in the item 3 is changed. There are some other options to choose but this you may ignore.
5. Now you will copy the link and then paste into your text. To do this, in your editor go into Text (or html) mode and paste the code where you want it to be positioned.
6. This is all you have to do, save the page and the result is in front of you, this is how it looks in my site:
Should you embed or link video?
One can also simply add a link instead of embedding YouTube video in WordPress. But in my opinion it is better to embed the video simply because this keeps visitors longer at your site. The time for watching is added to the time visitor stays at your site, which is not bad for ranking after all.
And there should be no problem of slowing down your site because the embedded video is not uploaded until it is clicked on. On the other hand, adding link will imply visitors leaving your site when they want to watch it.
Embed video in sidebar
The procedure of adding a video into sidebar consists of two steps. I shall describe it by using a YouTube video.
a: Making a code for video
For this I make a new post (or page) and give it any name. It will not be published. I use it only to make a code but I shall save it in case I want to make changes.
Then in Text mode I paste the video code which I have copied following the ’embed’ procedure described in the text above. Here is how it looks like:
Note, if you do not plan to add any text in the widget, you may skip this step completely and paste the video code directly into Text widget. Simple editing can also be done within the Text widget itself, see the next step.
b: Preparing a sidebar widget
Now I add a new Text widget into sidebar at any position I want. Then I copy and paste the code from the picture above. Below on the left you can see the Text widget with the code. This is all. I now save the widget, refresh the page and I have my video in the sidebar, you may see it on the right below:In the picture left above you may see that the box width is 640. You may change it to much smaller value using ‘custom size’ in the item 4 above.
Sidebars are usually narrow to play a video properly, but you can expand it to full screen mode and it will work perfectly.
I hope you find this post useful. Please leave some comment below, I shall be happy to read it and to answer any question you might have.
Below I give a video which I have found on YouTube video. It is about how to embed YouTube video.