How to embed a YouTube video clip into your WordPress web page or post
Video clips are popular and very accessible to website visitors. Clips that go viral will seriously benefit your business, giving you exposure that money cannot buy. The most popular video clips may even make you a household name.
Subtitles are available for those visitors with hearing impairment and the audio is great for those with sight problems. 5 minutes is the ideal length and hosting your video clips with YouTube is great for SEO (YouTube is owned by Google).
Videos are the order of the day and a must for your website. But how do you insert your video into your WordPress website?
It doesn’t matter if you are uncomfortable using code because there is only a teeny, weeny bit to do. Promise.
- Find your video clip on YouTube:
- Log in to your YouTube account and find your video;
- Under the clip, look for the ‘Share’ button;
- Select ‘Share’ then choose ‘Embed’;
- Set the size of your video clip from the drop-down list;
- Select your settings – we always uncheck the ‘Show suggested videos when the video finishes’ option;
- Copy the code supplied, for example:
1<iframe width="640" height="360" src="http://www.youtube.com/embed/Y8gujpwftj8?rel=0" frameborder="0" allowfullscreen></iframe>
- Edit your web page or post:
- Paste the code into your webpage where you would like the clip to appear;
- You are finished!
Quick top tips
The video will appear in your webpage aligned to the left by default. If you want to change the position of the video and are using WordPress then add one of these options just before the > tag of the code you copied:
<iframe width="560" height="315" src="http://www.youtube.com/embed/Y8gujpwftj8?rel=0" frameborder="0" allowfullscreen class="aligncenter"></iframe>
User Experience (UX)
The user’s experience of your website is key to success and conversion. With this in mind:
– Don’t set your clips to auto-play – there’s nothing more annoying than a video playing without the users say so;
– Before copying the embed code, uncheck the ‘Show suggested videos when the video finishes’ at the end of your video clip – you do not want your users to be tempted to leave your website by viewing someone else’s video clip.
Please remember that if you are using someone else’s video clip on a commercial site or for commercial reasons then you must respect copyright and seek permission from the author.
Share your thoughts
Did you find this helpful? If you have any questions about embedding YouTube video clips on your website then please comment below.
Check out our DesignWrite YouTube channel
Visit our YouTube channel and view our latest video tutorials including how to create named anchors and inserting tables into WordPress posts and pages.