How to Embed a YouTube Video in WordPress [Ultimate Guide]
Share This Post, Help Others

Adding YouTube videos to your WordPress website is a great method to grab your audience's attention, explain your business's complexity, display user-generated material, and retain visitors to your site for longer. Embed YouTube Video.

Not only can embedding videos inside your website enhance user engagement, but it also increases views on your YouTube videos—a bonus if you're attempting to expand your own YouTube channel.

It was a little more difficult to integrate YouTube videos on your site in the early days of WordPress. Thankfully, WordPress has progressed significantly since then, and there are now various options for displaying your YouTube videos on your website.

Let’s take a closer look.

What are the best WordPress video themes?

Let's have a look at some of the best WordPress video themes before we get into how to embed YouTube videos into your WordPress site.

If you're planning to develop a WordPress site with a lot of video content, you should go with a theme that supports a lot of videos.

1- VideoPro


VideoPro is a highly rated and completely responsive theme that may help you establish a large video-sharing site with features comparable to YouTube. Users may, for example, establish and administer video channels, as well as build and manage playlists.

There's also a nice membership function that lets you build a portion of your website where you can sell premium content.

2- VideoFly


VideoFly is a sleek video theme with plenty of whitespaces, making for a visually appealing video site. In terms of setup and the user video submission functionality, the theme is simple to use.

This theme makes embedding, uploading, and inserting movies on your WordPress site a breeze. If you like, you may also use the inbuilt YouTube importer.

This theme has a lot of customization possibilities to help you personalize your video site. You may also incorporate adverts into your site in a variety of ways.

3- Vlog


Vlog is a great theme for vloggers, as the name indicates. It's stylish and comes with a number of themes, so you may show your movies any way you like on your WordPress site.

You may use the video as a featured picture in your blog entries, or arrange your films into playlists.

Furthermore, this WordPress video plugin is compatible with the majority of the most popular video-sharing sites, including YouTube.

4- Soledad


Another WordPress video theme worth checking out is Soledad. Its near-limitless capacity to change layouts and display material in a variety of ways allows you to bring your website to life.

Hundreds of templates are available with this theme. Alternatively, you may use the bundled Visual Composer to create your layout.

In addition, there are built-in tools for effortlessly embedding movies into your WordPress site.

6 ways you can embed a YouTube video in WordPress

There are various ways to do every task using WordPress, as there are with most things. The following are some of the most frequent methods for embedding YouTube videos in WordPress.

There are several different embed options, as you'll see below, depending on the sort of video material you want to embed, how you want it to show, and whether or not you want to embed your complete YouTube channel.

1- Embed Youtube videos with Gutenberg

I have some fantastic news for you if you've switched your WordPress site from the Classic editor to the Gutenberg editor.

It's simple to embed a YouTube video.

Gutenberg is a content block editor. And WordPress already features a video-specific content block. The steps are as follows:

  • Click the “Add Block” symbol (a plus sign) by hovering your cursor over it.
  • Select “YouTube” from the drop-down menu.
  • Enter the URL of your YouTube video here.
  • When you click “Embed“, your video will appear in your content.

That is exactly all there is to it. Isn't it simple?

You must use a different method if you want to alter the appearance of your YouTube video. Here's how to do it:

  • Click the “Add Block” symbol by hovering your cursor over it.
  • Look for “Custom HTML” and choose it.
  • Copy and paste the iframe code into the HTML box, then preview if necessary.

After you've pasted the iframe code, you may play about with the HTML code.

2- Embed a YouTube video by adding it to your media files or inserting a URL via your media files

Embed a YouTube video

Adding a media file to your WordPress account is another approach to embed a YouTube video. The steps are as follows:

  • Click “Add new” in the “Media” section of your WordPress dashboard menu. (Note: if you include the video in your Media files, it will remain on your website.)
  • Go to the page or post where you wish the video to appear.
  • Find and pick “Video” under the content block options while you're on the page.
  • You may upload a video, add one from your media library, or paste a URL into this box.
  • If you've saved the video to your media library, go to “Media Library” and find the video you want to use.
  • WordPress will withdraw the video from YouTube if you don't want it to stay on your site.
  • Click “Insert from URL” in this case and paste the URL into the field.

3- Embed your entire YouTube channel

Consider incorporating your YouTube feed into your website if a substantial percentage of your business relies on users watching your YouTube videos.

With the aid of a YouTube plugin like your channel, you can achieve this.

After you've installed and enabled the Your Channel plugin, go to “Settings” and then “your channel” to customize it.

Enter your YouTube API, as well as your channel ID or username, here.

Embed your entire YouTube channel

The additional options on this page will allow you to customize your channel's display options. After you've finished configuring your preferences, copy and paste the WordPress shortcode onto the page where you want your videos to appear.

4- Embed a YouTube video in a widget area

Install and activate a YouTube embed plugin like YouTube Widget Responsive if you wish to embed a YouTube video in one of your widget locations.

After you've installed the plugin, go to “Appearance” and then “Widgets“. Find your widget and drag it to the place on your website where you want your video to show.

Now, paste the video's URL into the box and click “Save“.

5- Create a YouTube video gallery

You'll need a YouTube video gallery widget if you want to add multiple YouTube videos to your site but don't want to include your complete channel.

The following are some of the best video gallery plugins:

The first step is to install your preferred video gallery plugin. Let's concentrate on Video Gallery for the sake of this post. After that, you'll need to set up the plugin.

Locate the “Gallery Video” option on the left-hand side of your WordPress dashboard to customize this plugin. Then choose “New Gallery Video“, give it a title, and choose a layout.

Then, by selecting the “Add Video” button and providing the video's URL, you may add the videos. After that, select “Save Video“. You may use this WordPress video plugin to add as many videos as you like.

YouTube video gallery widget

When you've finished uploading videos, click “Save“. Copy and paste the shortcode anywhere on your website.

6- Add a pop-up video lightbox

Creating a video lightbox is another creative way to use YouTube videos on your website. These films can assist focus your audience's attention on each video while also adding a beautiful visual effect.

Install and activate the WP Video Lightbox WordPress plugin to do this.

When you've finished installing the plugin, go to the left-hand column and look for “Settings“, then “Video Lightbox“. You may adjust your settings as needed from here.

If you need more information, look through the thorough documentation, which will lead you through any potential issues.

Support your WordPress videos with a reliable web hosting company

There's a reason video is one of the most popular types of online material. It's a fantastic method to engage your audience, educate them on something new, and get them excited about your website.

Hopefully, you now have a better idea of how to include YouTube videos on your WordPress site. Remember that video material consumes more memory on your site than textual content, so choose a HostGator WordPress hosting package that is both stable and safe.

Similar Posts


  1. I wanted to thank you for this great read! I absolutely enjoyed every bit of it. I’ve got you bookmarked to look at the new stuff you post.

Leave a Reply

Your email address will not be published. Required fields are marked *