How to Embed Video in WordPress

How to Embed Video in WordPress

Much like images, videos are fantastic tools to attract, engage, and bring back visitors to your website. Embedding videos can also help your page to rank better in Google Search.

Thus, we’d like to share some methods on how to embed videos in WordPress and show you a few plugins that will help you with video embedding. Let’s get started.

How to Embed Video in Posts or Pages

In this section, we will take a look at how to embed YouTube videos. Keep in mind that very similar steps apply to other popular video-sharing platforms as well.

oEmbed Method

oEmbed is a protocol that allows for embedding videos, images, text, and more by entering the source URL for the media you wish to embed.

It’s the easiest way to embed videos in WordPress and you don’t need any coding knowledge to do this. Here are the steps:

  1. Go to YouTube.
  2. Find the video you want to embed.
  3. Hover your mouse pointer to the URL bar and copy the video’s URL.
  4. Now, go to your WordPress visual editor.
  5. Paste the video’s URL and WordPress will automatically embed the video.

Example:

The embed video block in the WordPress block editor

Final result:

Iframe Method

The second method allows you to customize how your video will show up on your post or page. You can do this by following the steps below:

  1. Click the Share button above the subscribe button on a YouTube video.
  2. Click Embed.
  3. You will be presented with the iframe code and some options boxes. The first box will let you embed a YouTube video that starts at a specific time. To adjust the time you need to watch the video first and pause at the desired time. You can also include the player controls such as play/pause, volume, and the fast-forward button by checking the other boxes.
A YouTube video and its embed video Iframe code
  1. Copy the Iframe code and jump to the WordPress visual editor.
  2. Change from visual mode into the text mode and paste the embed code.

Embed Videos in Your Sidebar

If you prefer adding your videos to your sidebar rather than inserting them in your post, follow the steps below to learn how to embed a video in the WordPress sidebar:

  1. Log in to your WordPress dashboard, go to Appearance -> Customize and click on Widgets.
  2. You may have multiple sidebar areas where you want to add your videos. Choose the preferred sidebar, and click the Add a Widget button.
  3. Now, type “video” in the search box.
  4. Click the Add Video button, and choose Insert from URL.
  5. Then, copy and paste the video URL from YouTube into the box.
  6. After the video preview appears, hit the Add to Widget button to confirm.
  7. You may enter the video title in the video widget on your left side.
  8. Lastly, click the Save & Publish button to go live.

WordPress supports auto-embeds for platforms other than YouTube. You can also embed your Facebook posts and tweets in your WordPress. Below is a list of platforms that support the auto-embed feature by WordPress.

  • Vimeo
  • Flickr
  • DailyMotion
  • Hulu
  • Instagram
  • Photobucket
  • Reddit
  • Scribd
  • SlideShare
  • SoundCloud
  • Spotify
  • TED
  • Tumblr
  • wordpress.tv
  • WordPress plugin directory

Why You Should Not Upload Videos to Your Hosting Account?

Why not simply upload videos to your website directly? There are a couple of reasons for it, which we will address below.

Minimize Server Resource Usage

Uploading your videos will take up your server’s resources. Moreover, if your site is hosted on a shared hosting server, you will also impact other websites that share the same resources as you do. Managing videos may also require additional plugins, which will, in turn, hog your resources as well. As a result, the performance of your site will suffer, which can be avoided by embedding your videos.

Get More Traffic, Visibility, and Shares

YouTube is the third most visited website in the world. Thus, uploading your video to Youtube will generate more visitors and traffic, rather than uploading it to your own site. It is also easier to manage your videos via YouTube as well.

Video Embedding Plugins

You have learned that the process of embedding videos in WordPress is easy to understand and work with. However, these embedding video plugins below may help you to embed and manage your videos even better.

1. Videopack

This free WordPress plugin is a perfect choice if you want to turn your website into one that is video-based. By using this plugin, you’ll gain access to several different video players such as Video.js, Mediaelement.js, JW Player 6, or Adobe Strobe Media Playback Flash Player.

The videos will be resized and fit neatly into your website’s design no matter which player you choose. This plugin will also generate the video thumbnail.

2. Presto Player

Presto Player is a premium WordPress plugin that can take website video to a whole new level. It can play videos from a range of sources and provides a slick audio and video player you can fully control.

Presto Player provides support for video chapters, email opt-ins, calls to action, Google Analytics, muted autoplay, private videos and integrations with leading LMS and email marketing platforms.

3. ARVE Advanced Responsive Video Embedder

This plugin may be the most complete plugin to support video embedding on WordPress. This SEO-friendly plugin can specify the title, description, and upload date of an embedded video, which will help you with indexing.

As the name suggests, responsive video embedding is supported as well. All of this is available without further complicating the embedding method, as you can paste the URL the same as you do with the oEmbed method.

4. YouTube Embed

This embedding plugin is made specifically for those who frequently embed videos from YouTube. YouTube Embed has some interesting key features. You can make your own video playlists, and recommend them based on the user’s search history. This plugin also supports dynamic video sizing which fits together perfectly with any responsive themes.

Conclusion

Videos enrich your content and bring value to your website. Although you can upload your videos, embedding videos is recommended. Since you’ve just learned some methods to embed videos to your website and now know about a list of plugins to manage them, why not give it a try?

Do you have any experience in embedding videos on WordPress? Share them with us in the comment section below.

Embed Video in WordPress FAQ

Learn the answers to frequently asked questions about how to embed video in WordPress.

Can I Embed MP4 in WordPress?

Yes, you can embed an MP4 video in WordPress. First, upload the MP4 file to your WordPress media library by visiting Media → Add New in your WordPress dashboard. Get a shortcode by clicking on the Insert into post link to add the embedded file in your posts or pages.

Can I Embed Video for Free in WordPress?

Yes, it is possible to embed videos for free in WordPress. The CMS has an extensive library of free video hosting services like YouTube, Vimeo, and Dailymotion, to choose from. In addition, it is possible to upload your own videos directly onto the WordPress dashboard.

Why Is My Video Not Embedded in WordPress?

Check the settings to make sure that you allow embeds in your WordPress site. Head to Settings → Media, and under Embeds, check the option When possible, embed the media content from a URL directly onto the page.

Author
The author

Leonardus Nugraha

Leo is a Content Specialist and WordPress contributor. Armed with his experience as a WordPress Release Co-Lead and Documentation Team Representative, he loves sharing his knowledge to help people build successful websites. Follow him on LinkedIn.