This tutorial will show you how to embed YouTube videos directly into your site without a plugin.
There’s a mantra in CMS communities, that goes something along the lines of “There’s a plugin for that.” However, adding many plugins can make it more difficult to manage the site in the long term, as well as cause conflicts at times. One of the most common examples of this is YouTube plugins. While many of them can be very useful, they are sometimes not flexible enough or cause unintended issues.
The solution is simple, but I’ve found that many site admins don’t know about it and instead opt to link to the video, rather embedding it into their website.
Let’s get started.
Get the Embed Code
Go to your YouTube video, then below it you’ll see:
- Select your preferred options, then copy the embed code.
- Finally, paste the embed code within your webpage’s code edit screen.
That’s all there is to it! You’re done. You can also do the same thing with YouTube playlists.