Do you want to add video content to your WordPress website? Embedding YouTube videos in WordPress is an excellent way to breathe new life into your website and increase visitor engagement.
There are several ways to embed YouTube content in WordPress, so it can be hard knowing which method to pick.
But don’t worry. In this article, we’ll show you how to embed a YouTube video in WordPress easily, so it’ll have the maximum impact on your audience and you can easily get more YouTube subscribers.
Here are the different methods to help you navigate this article:
- Adding a video to WordPress pages and blog posts
- Embedding videos with the classic WordPress editor
- Inserting YouTube videos in a sidebar widget
- Adding a YouTube feed to WordPress
- Embedding a YouTube playlist in WordPress
Embedding YouTube Videos Manually in WordPress
The following methods for embedding YouTube videos in WordPress will show you how to manually add video content to the new WordPress block editor, the classic editor, and sidebar widgets.
Let’s dive in!
Add a Video to WordPress Pages and Blog Posts
WordPress comes with a handy feature called auto-embeds, which lets your website automatically get the embed code from video hosting services like YouTube, and display the content in a blog post or page.
To embed a YouTube video in a WordPress blog post or page, all you need is to copy the URL of the video you want to embed.
Then edit the post or page where you want to add the video and paste the URL into the WordPress editor.
As soon as you paste the URL, WordPress finds the embed code and displays the YouTube video inside the content area.
Now when you save the post and click the Preview button, you’ll see the embedded video as visitors would see it on your website.
Pretty easy, right?
Once you’ve added your video, it’s easy to change its settings using the block toolbar and media settings column on the right-hand side of your screen.
From there, you can adjust the video width, change the alignment, make it full-width, and more. You can also add a caption to accompany the video and preserve the aspect ratio for people browsing on mobile devices.
It’s only possible to use the WordPress auto-embed feature for white-listed video platforms which include:
- Vimeo, and more
You can find a full list of white-listed video embeds for WordPress here.
If the site you wish to embed videos from isn’t on that list, you’ll need to get the full HTML embed code directly from that platform.
Then paste the code into a new Custom HTML block in the WordPress editor.
Embed YouTube Videos Using the Classic WordPress Editor
The method above uses the new WordPress block editor to embed YouTube videos. But what if you’re still using the old classic WordPress editor?
Embedding videos in the classic editor works in the same way. Just copy the video URL from YouTube and paste it directly into your post. After a few seconds, you’ll see the video in the content area with a preview.
However, with the classic editor, you won’t have the full range of options to adjust the video that you get using the block editor.
Add YouTube Videos in a WordPress Sidebar Widget
Similar to WordPress posts and pages, you can embed a YouTube video as a widget in your WordPress sidebar just as easily.
To do that, navigate to Appearance » Widgets from the WordPress dashboard and add a text widget to your sidebar area.
Then paste your video URL inside the text widget. WordPress will automatically find the embed code and display a preview of your video inside the widget’s content area.
Make sure you click the Save button to store your widget settings. Then you can visit your website to see the video embed in your sidebar.
Embed YouTube Video Feeds in WordPress The Easy Way
While embedding individual videos in WordPress is pretty straightforward, manually adding whole feeds of YouTube videos isn’t as easy.
If you want to embed a YouTube feed to display your latest videos, you’ll need to hire a developer to help you out. That’s because manually embedding YouTube feeds in WordPress requires coding knowledge, which isn’t something every website owner has experience with.
But don’t worry. There’s an alternative, easier way that anyone can implement, no matter your level of experience.
And that is to use a WordPress plugin to embed YouTube video feeds on your website.
Feeds for YouTube is the most versatile YouTube plugin for WordPress and lets you display completely customizable YouTube feeds on your website.
With tons of customization, layout, and styling options, you can easily embed your video feeds to look however you like. That means your feeds will look great right out of the box, with no technical knowledge required.
And it’s not just regular video feeds you can embed either.
Feeds for YouTube also includes the ability to…
- Combine feeds from multiple YouTube channels in a single feed
- Show a feed of current and future YouTube live streams so you won’t have to embed individual videos each time you go live
- Build fully tailored video feeds using advanced YouTube search queries
You can also turn your feed’s video data into a custom WordPress post type, so your videos show up in your regular WordPress posts feed and site search. That can benefit your site’s SEO as it creates a permanent link on your website for search engines to crawl and index.
Now that you know why embedding YouTube video feeds in WordPress is easier with a plugin, let’s look at how to do it.
Add a YouTube Video Feed to WordPress
Once you’ve installed and activated the plugin, navigate to Feeds for YouTube » Settings, and connect your YouTube account by clicking the blue login button.
It’s also recommended that you add your account’s API key for several features to work correctly. You can learn how to do that in this guide to creating and using YouTube APIs.
After linking your account, you need to choose which feed type to display in WordPress. To keep this tutorial simple, let’s choose the “Channel” type by clicking the Channel radio button to show a feed of your channel’s videos.
Then click the Save Changes button.
Customize Your YouTube Video Feed
Now you’re ready to move on to customizing your feed. To do that, click the Customize tab at the top of the Settings page, and start by setting the width, height, and background color of your feed.
Then move on to the Layout section to choose how your feeds look on your site.
There are several ways to display your feed. You can show videos in a uniform Grid, a Gallery with 1 large video and several smaller thumbnails, a single column List, and a scrolling Carousel.
Choose any layout you prefer, and if you like, you can edit the number of columns in your feed for mobile and desktop. Then click the Save Changes button.
When you scroll further through the customization page, you’ll see a range of other options to customize your YouTube feed, including what information to display, text and translation settings, header and button choices, and more.
Then when you’re happy with your feed, you can move on to embedding it in WordPress.
Embed Your YouTube Video Feed in WordPress
To embed a YouTube video feed in WordPress, start by adding a new post or page. Then within the content editor, click the Plus (+) icon to add a new WordPress content block.
Then in the search box type “feeds” to locate the YouTube Feeds content block.
When you click the block, WordPress automatically adds your YouTube video feed into the content editor with a preview of how it’ll look on your live website.
If you click the Preview button, you’ll be able to see what your feed looks like for visitors.
Embed a YouTube Playlist in WordPress
If you’d rather embed a YouTube playlist in WordPress, you can also do that with the Feeds for YouTube plugin.
Just follow the steps above, and instead of choosing the “Channel” layout type, select the Playlist type. Then in the text box next to it, enter the ID of your YouTube playlist.
Remember, click Save Changes to preserve your settings.
Embedding a YouTube playlist in WordPress, using the YouTube Feeds plugin is the same as embedding your channel feed.
Click the Plus (+) icon to add a new content block, type “feeds” to search for the YouTube Feed block, and click to add it to the content editor.
Then when you click the preview button, you’ll see your YouTube playlist as it’ll look to your visitors.
There you have it!
You now know how to embed a YouTube video in WordPress, and with the help of Smash Balloon’s powerful Feeds for YouTube plugin, you can have complete control over what content to display on your site, and how it looks.
Now all that’s left is to get stuck in.