How to easily Embed Videos in WordPress Blog Posts

Want to add videos to your WordPress blog posts? Videos bring your site to life, and they are a great way to increase user engagement.

WordPress makes it very easy to embed videos from sites such as YouTube, Vimeo, Facebook, Twitter and many others.

In this beginner’s guide, we’ll show you how to easily embed videos into WordPress blog posts, pages, and sidebar widgets.

How to embed videos in WordPress blog posts and pages

WordPress comes with an excellent feature called auto-embeds, which allows your website to automatically receive embed code from popular video hosting sites such as YouTube, Vimeo, etc.

All you have to do is paste the URL of the video into the WordPress editor.

For example, you can copy the YouTube URL for the video you want to embed.

Then edit the post or WordPress page where you want to add the video and just paste the URL into the content area.

As soon as you paste the URL of the video, WordPress will download the embed code and display the YouTube video in the content editor.

Now you can save your post and click on the preview button to see the embedded video on your blog.

Isn’t it that simple?

After adding a video, you can change its settings on the toolbar of the block and in the settings column on the right.

You can adjust the width of the video, make it full-size, change the alignment and much more. You can also add a caption and save the aspect ratio of the video on mobile devices.

WordPress can perform automatic embedding only for whitelisted video services. For other websites, you’ll still have to get the embed code and then paste it into your blog entries.

Here is a list of white video services for automatic embedding in WordPress:

  • Amazon
  • Animoto
  • Cloudup
  • CollegeHumor
  • Crowdsignal
  • Dailymotion
  • facebook
  • Flickr
  • Hulu
  • Imgur
  • Instagram
  • Issuu
  • Kickstarter
  • Mixcloud
  • Reddit
  • ReverbNation
  • Screencast
  • Scribd
  • Slideshare
  • SmugMug
  • Someecards
  • SoundCloud
  • Speaker deck
  • Spotify
  • TED
  • Tumblr
  • twitter
  • VideoPress
  • Vimeo
  • YouTube

If you want to add a video from a website not included in this list, you will need the full HTML code to embed the video.

Just copy the HTML code provided by the website with the video and paste it into the ‘Custom HTML’ block in the editor.

Embed a video in WordPress using the Old Classic Editor

If you are still using the old classic WordPress editor, then you can embed the video in the same way.

Just copy the URL from a video hosting service like YouTube and paste it into the editor. If you use a visual editor, then you will see a preview of the video.

However, you will not be able to use the width adjustment and other parameters that can be used in the new WordPress block editor.

How to embed videos in WordPress sidebar widgets

Just like a WordPress page or post, you can also embed videos in WordPress sidebar widgets.

Just go to Appearance ‘Widgets

In the widget settings, you need to insert the URL of the video in the content area. WordPress will automatically download the embed code and display a preview of the video.

Don’t forget to click the ‘Save’ button to save the widget settings.

Now you can visit your website to see the video embedded in the WordPress sidebar widget.

Why can’t I upload videos to WordPress?

Well, you can, but we don’t recommend you to do it.

Most small blogs use shared WordPress hosting accounts, and videos can take up a lot of server resources. If your video has received tons of traffic, then your site is more likely to crash.

Secondly, you are missing YouTube user traffic.

YouTube is not only the largest video hosting, but also the second most popular search engine in the world, as well as the second most popular social network right after Facebook.

If you don’t want to upload your videos to YouTube, you can try Vimeo or DailyMotion. Check out the comparison of YouTube and Vimeo to find out which platform is best suited for your needs.

To learn more about this topic, take a look at our article on why you should never upload videos to WordPress.

WordPress plugins for embedding videos

By default, you don’t need to use a plugin to embed videos in WordPress. However, you can use plugins to improve video viewing on your website.

Below are a few plugins that you can try.

1. YouTube subscription panel

The YouTube subscription panel shows the YouTube subscription button under your YouTube video inserts in WordPress. It also selects the number of your YouTube subscribers to add social proof and encourage more users to subscribe.

First we created it to promote the WPBeginner YouTube channel on this site. Many of our users asked us to tell them how we did it, so we decided to release it as a free plugin.

2. Envira Gallery

By default, WordPress does not have a built-in video gallery feature. If you want to show a video gallery on a page, then you will need a plugin for that.

Envira Gallery is one of the best photo gallery plugins for WordPress. It also comes with a video add-in that allows you to create beautiful video galleries with pop-up support.

3. Lazy video loading

The video embeds loading scripts from external websites, which has little effect on the page loading speed and its performance.

Lazy Load for Videos solves this problem by loading the video image only when the page loads. It loads the embed code only when the user clicks the play button. See our tutorial on how to add lazy loading for videos in WordPress.

We hope this article has helped you learn how to easily embed videos into WordPress blog posts. You can also see our list of WordPress plugins for all websites.

If you liked this article, please subscribe to our YouTube channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post ‘How to easily embed videos in WordPress blog posts’ first appeared on WPBeginner.