WordPress Tutorial

How to Embed Video in WordPress

Besides images, videos are always great 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 show how to embed YouTube videos, however, very similar steps apply to other popular video sharing platforms.

oEmbed Method

oEmbed is a protocol which allows embedding videos, images, text, etc. from site A to site B just by entering the source URL.

It’s the easiest way to embed videos in WordPress. You don’t need to understand coding 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: 

Embed Video in WordPress Post EditorFinal 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 above the subscribe button.
  2. Click Embed.
  3. You will find 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 show the player controls such as play/pause, volume, and the fast-forward button by checking the second boxes.
    Youtube Embed Code
  4. Copy the Iframe code and jump to the WordPress visual editor.
  5. Change visual mode into the text mode and paste the embed code.

Embed videos in your sidebar

Sometimes, you prefer adding your videos to your sidebar rather than inserting it in your post. Follow the steps below to embed a video in WordPress sidebar:

  1. From your admin 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 sidebar, and click Add a Widget button.
  3. Now, type ‘video’ in the search box.
  4. Next, you have the video widget on your left side. Click Add Video button, and choose Insert from URL.
  5. Then, copy and paste the video URL from YouTube in the box.
  6. After the video’s preview appears, hit the Add to Widget button to confirm it.
    Embedding Youtube Video in WordPress Widget
  7. You may add the video’s title in the video widget on your left side.
  8. Last, click the Save & Publish button to go live.

WordPress supports auto-embeds for a lot more platforms than simply 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 plugin directory
  • WordPress.tv

Why You Should Not Upload Videos to Your Hosting

Now, you might be thinking as to why you should embed the videos when you can upload them to your website directly? There are quite a few reasons, actually and if you want to find out, just keep reading.

Keep server resources

Uploading your videos will take up your server’s resources. Moreover, if you use shared hosting, you will also impact other websites that share the same resources as you do. Managing videos may also require additional plugins. Plugins will raise your server load too. As a result, your site’s performance can degrade. Embedding videos is a perfect choice for when you want to add value to your website by adding content and not losing any performance in return.

Better user experience

When you embed your videos from a video-based platform such as YouTube, you also embed compelling YouTube user experience on your website. A video-based platform has the capability to smartly choose the best video resolution by identifying each device’s quality and network connection. Moreover, viewers can also choose their preferable resolution. Player control features such as play/pause, volume, and fast forward buttons are also provided. In contrary, WordPress process videos differently. You would lose these engaging user experience moments if you choose to upload videos to your website instead.

Get more traffic, visibility, and shares

YouTube is the third most visited website in the world (it came a long way, huh?). Thus, uploading your video to Youtube will gain 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 embedding videos in WordPress is a piece of cake. However, these embedding video plugins below may help you to embed and manage your videos even better.

1. Video Embed & Thumbnail Generator

This free WordPress plugin is a perfect choice if you want to turn your website into a video-based one like YouTube. By using this plugin, you have several options to use different video players such as Video.js, Mediaelement.js, JW Player 6 or Adobe Strobe Media Playback Flash Player. The best thing about this is that the videos will be resized and fit into place no matter what player you choose. This plugin will also generate the video thumbnail.

2. ARVE Advanced Responsive Video Embedder

This plugin may be the most complete plugin to support video embedding on WordPress. First, this SEO friendly plugin will help you to have a better indexing by specifying title, description, and upload date. Responsive video embedding just like the name implies is obviously supported. Furthermore, you can get those features without complicated settings. Just paste your video’s URL as you do in the oEmbed Method.

3. YouTube Embed

This embedding plugin is made specifically for those who love to embed videos from YouTube. YouTube Embed has some interesting key features. First, you can make your own video playlists and replaying however you want. Second, you can generate playlists and give them recommendations based on search or username. Moreover, this plugin also supports dynamic video sizing that would surely be perfect for your responsive themes.

Conclusion

Videos enrich your content and bring value to your website. Although you can upload your videos, embedding videos is definitely more recommended. And since you just read about some of the ways to embed videos to your website and 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.

About the author

Artūras B.

Artūras is an experienced content writer that is working for Hostinger. Bringing in a lot of knowledge about WordPress and web hosting to the team, he strives to write pristine content about any IT related subject. He also loves dogs!

Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get Exclusive Content

Join thousands of webmasters who get our free newsletter with tips on how to drive more traffic and revenue to their websites!

Please wait...

Thank you for sign up!

More in WordPress Tutorial
How to Reinstall WordPress (The Correct Way)
Close