5 Ways to Embed a YouTube Video on Your WordPress Site
Embedding a YouTube video on your site is easy, but the default embed comes with extras that can send your visitors away to YouTube. This guide shows five ways to embed a video, from simply pasting the link to a fully custom player, so you can choose how much control you need.
Recorded in January 2024. The YouTube, WordPress and extension screens may look different today.
1. Paste the URL
Many website builders can embed a YouTube video from its link alone.

In WordPress, open the editor and copy the video URL. Page builders like Divi and Elementor have a special block for it. In the regular Gutenberg editor, click the plus button, search for YouTube and paste the link. That is it. You can embed playlists the same way.

The downside is everything YouTube adds to the player, which can lead visitors from your site to YouTube.

2. Use YouTube’s embed code
Open any video on YouTube, not only yours, click Share and then Embed, copy the HTML code and paste it into an HTML block on your site. The embed window has a few options:
- Start at: start the video at a certain time.
- Show player controls: without them, visitors can only play and pause. They cannot turn on captions or change the speed, and a few clickable areas still lead to YouTube and can show videos that are not from your channel.
- Privacy-enhanced mode: stop YouTube from collecting data about your visitors.

If you know HTML, YouTube has a list of parameters you can add to the code. If you do not code, like me, use one of the next two free tools.
3. vidIQ Advanced Embed
Install the free vidIQ extension. On any YouTube video, click the vidIQ button under the video and choose Advanced Embed. In YouTube Studio, open Content and click the vidIQ logo next to a video.

Choose the size, then add options to the code: autoplay when the page loads, captions, start and stop times (YouTube’s own code can only start, not stop), loop, hide the YouTube logo, and most important, no suggested videos at the end, so visitors stay on your site. Copy the code and paste it on your site. If the video is too big, change the size and copy it again.
4. TubeBuddy Advanced Embed
Install the free TubeBuddy extension. On a video page, click Tools in the TubeBuddy side panel and choose Advanced Embed. In YouTube Studio, click the TubeBuddy logo next to a video in the Content tab and find Advanced Embed in the list.
Choose the size, the start and end times and the player controls. To reduce the YouTube logo, click Modest Branding. Then copy the customized code and paste it on your site.

Both tools use the same YouTube parameters and simply write the code for you. The difference is that TubeBuddy lets you turn things off, while vidIQ lets you add them.
5. A custom player with Presto Player
Even with all these options, YouTube still shows some of its branding. On WordPress, the Presto Player plugin replaces the YouTube player with its own, so no one recognizes it as a YouTube video. You can customize the colors, set autoplay, even stop viewers from pausing, and much more. It is great for landing pages, where you do not want visitors going to YouTube at all.

Some of the links in this post are affiliate links. If you sign up through them I may earn a small commission at no extra cost to you. I only recommend tools I use myself.
Keep learning
This guide is part of the complete guide: YouTube Channel Guide.
Free download: get the New YouTube Channel Checklist, every step on one page.
