How to Easily Embed Videos in WordPress Blog Posts

Everybody loves videos because you can consume a lot of information in a very short time. So rather than reading a long blog post, many visitors prefer to go through a video. 

Consider this: adults in the US spent almost 100 minutes a day watching online videos in 2020.

Given this interest in how we prefer to consume content, many WordPress site owners embed a video in blog posts. This caters to readers and to all of you who prefer watching over reading.

Adding videos to your posts and pages makes them more “sticky.” 

As a result, the overall bounce rate drops, and the visitors’ stay-time increases. 

Adding video also benefits the search engine rankings of your website and adds to the brand’s reputation.

We tried and tested every way we could think of to embed videos in WordPress. Some worked, some didn’t. What follows are the simplest, most effective ways to embed video.

WordPress Loves Video

WordPress powers almost 40% of all the websites on the internet today. Excellent support for video and multiple easy options for embedding videos in posts and pages are two critical factors behind the success of WordPress. 

The current version, WordPress 5.8, supports all popular video formats, including:

  • mp4
  • m4v
  • webm
  • ogv
  • flv

As you can see from the list, you can create or record your videos in all popular formats and then embed them on your pages.

Living up to its reputation of offering multiple ways of doing things, you can choose from three ways to embed videos in WordPress. 

However, as you’ll see, not all methods offer the same benefit. We urge you to try all the methods and choose the one that works for you.

To demonstrate these methods, we’ll show you how to embed a YouTube video in a WordPress post. 

If your videos are hosted on another video hosting platform or on your server (more on that later in this post), these methods should work perfectly.

Method 1: Just Paste the Link (The oEmbed Method)

The WordPress Gutenberg editor offers several video-specific blocks that simplify the process of embedding videos. 

This auto-embed method automatically fetches all the details from the host and selects the appropriate way of displaying the video. 

During the process, the Gutenberg editor can switch blocks to the one best suited for the link. For instance, if you paste a link from YouTube, it’ll automatically select the YouTube block to embed the link.

Using the auto-embed option is straightforward and takes just seconds to embed video into the desired location. 

Here’s how you use this method.

Copy the Link to the Resource

Start by copying the link of the resource you wish to embed. Usually, the URL is in the address bar.

Add URL of you youtube video

Paste the Link in the Editor

Simply paste the link in the editor. The editor will fetch the video and embed it at the location.

Paste youtube url to the blog post

Preview and Publish

Next, check out the post preview to see how the video would appear on your live site.

Preview of youtube video on page

Why oEmbed Method Isn’t a Good Idea

Auto-embed might seem the best way of embedding videos – simply paste the URL, and the video appears automatically!

Well, that’s about it – there is no room for further customization, and you’ll have to be content with the default player offered by the video host.

In the case of YouTube, you can see all the features of the YouTube player, particularly the Recommended Videos and Watch on YouTube button.

This means you have little to no control over how your YouTube-hosted videos would look and behave. Plus, those are two easy opportunities for visitors to disappear before watching your video!

Ads in Youtube player

Method 2: Use an iFrame Embed

The iframe embed method takes advantage of the fact that video hosts often offer a better-looking way of embedding video in WordPress websites, the iFrame.

This method also involves copying from the video host and pasting it into the location where you wish to embed the video. However, this method offers much more than the simple oEmbed method.

For one, the method depends upon an HTML snippet that encloses all the required information in a <iframe> tag. 

This tag essentially contains the basic information about how the player would play the video. In addition to the height and width of the player, this snippet also enables some of the core YouTube player features (such as the gyroscope option for changing the mode when the device is rotated). 

While creating the snippet, you also have the choice of showing or hiding player controls and selecting a specific starting point for the video. 

By setting these two additional options, you can slightly change the way the video is played on your pages.

Note that not all video hosts support this method or provide all the options mentioned above. 

The iframe method is a three-step process.

Go to the Video Page

Check the video page to see whether there is a Share or Embed option. Click it to go to the Embed option.

Embed Youtube Video to your blog

Format the iframe Tag

Carefully go through the available options to create the iframe tag.

An iFrame looks like this:

<iframe width="560" height="315" src="https://www.youtube.com/embed/58AaRH5VEZI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

In the case of YouTube, the content of the iframe tag is already present in the menu. You can just click Copy at this point and move to the final step. 

If you wish, you can explore other options in the popup menu. 

By default, the video starts playing at the start (the 0:00 mark). You can alter the starting point of the video within those options. Similarly, you can choose to show or hide player controls to make sure that the video player fits into the general design of your website.

iframe code embed on blog

Paste the iFrame Code and Preview

Now that you have the right iFrame code, simply copy it and paste it to the appropriate location.

iframe code embed for video on blog

Preview the post to see if the video looks right.

iframe embed video preview

The iframe method of embedding videos offers more versatility and better control over how the player would integrate into the website design. It also allows you to show or hide player controls, control the player’s dimensions, and make sure the video plays without a hitch. 

However, that’s about the end of the list of the benefits of the iFrame method of embedding videos!!

Stop and Think Why You Want To Embed Videos?

For marketers, videos serve an important purpose. They are essential for getting the message across quickly and educating users on how to best interact with the topic being discussed.

So, before we move to the last, (and in our opinion, the best), way of embedding videos in your WordPress website, we would like to highlight an important drawback of these two methods. 

The above methods lock you to a particular host and how you can use these methods depends largely on the host’s features. 

This is not a good situation for WordPress website owners, as many of us often want to try out new ideas and products to optimize our workflows. 

Let’s take YouTube’s example. 

Here, you opt for YouTube as your video hosting service (not a bad idea in itself). Now, when you use the above two methods, you’ll be restricted to the default YouTube player.

YouTube also shows ads in between and at the end of each video and inserts recommendations at the end of each video.

This lack of control is never a good option. Fortunately, the last method to embed videos in WordPress aims to rectify this.

Method 3: Use Presto Player to Embed Videos

This method uses Presto Player, a versatile WordPress video plugin that takes care of all your video embedding needs. As the name suggests, Presto Player doubles as a highly customizable player that fits seamlessly into your website design.

Here’s how you can easily embed a video into your web pages using Presto Player. 

To keep this example consistent, we’ll show you how to embed a YouTube video in a webpage using Presto Player.

Copy the Link to the Resource

Simply copy the YouTube video URL.

Add URL of you youtube video

Add a Presto Player YouTube Block

Presto Player comes with dedicated blocks for popular video hosts such as YouTube and Vimeo. 

Since this is a YouTube video, use the Presto Player YouTube Video block to access all the optimizations that the plugin offers for embedding and displaying YouTube videos. 

Search for Presto Player YouTube Video and click it to add the block to the post.

Embed video through Presto Player block

Add the Video URL

Simply paste the video URL and click the Add Video button. Presto Player will fetch the video and embed it at the location of the block.

Add video url in Presto Player Plugin

This is where you can experience the real benefit of this method. 

Unlike the other two methods that confine you to the default YouTube player, Presto Player embeds a clean-looking player that can be fully customized with presets and overlays.

Video Preview after embed it by Presto Player plugin

Apply the YouTube Optimized Preset

At this point, the video is embedded, and you can publish the video by hitting the Publish button. 

However, if you wish to benefit from Presto Player advanced capabilities, go to the sidebar with the block’s properties. 

Scroll down to the Video Preset section and select the YouTube Optimized preset to apply a predefined set of optimizations that change the video’s look and feel.

Present of Presto Player Plugin with youtube video embed

The Presto Player Advantage

What you saw above is a very basic application of Presto Player in embedding and displaying videos on your web pages.

One can customize the video option with Presto Player Plugin

Presto Player goes beyond the simple player embed of the oEmbed method and the basic functionality of the iFrame method. It offers better control over how you can add your branding and logo to the player. 

In addition, you can add chapter markers to long videos to help your visitors get to their desired scene quickly. 

Similarly, you can also set the options for muted video preview and video autoplay to make sure the video can be used in the way you wish. 

In addition to adding logos and overlays, you can also define your own preset. This provides a combination of options for placing the Action Bar, email collection, and the placement of playback controls. 

Presto Player comes with all the options you need to use videos as advertisements, help desk videos, customer testimonials, sales support videos, and any type of video you choose.

The Temptation to Self-host Videos

At this point, you might be considering the idea of uploading videos to the server that hosts your WordPress website. 

The idea is certainly tempting – you already have the space,, and uploading the videos is a simple matter of using FTP or the WordPress Media Library. 

While the idea of self-hosting videos makes sense on the paper, it has two critical downsides that you should carefully consider before going ahead.

Self-hosting Takes a Toll on Server Performance

Since the videos are hosted on the same server as your website, every time a visitor lands on a page with an embedded video, the server has to allocate a portion of server resources (RAM and bandwidth) to cater to the request. 

As the number of requests goes up, the overall server response rate drops as more and more server resources are used up by videos. 

As a result, your website slows down, and the overall user experience goes down along with it.

Little Control Over Advanced Features and Video Playback 

When it comes to self-hosted videos, your options are limited to the native Gutenberg video block or a third-party player plugin. 

If you opt for the Gutenberg player, you have little control over how the video is played on web pages. This basic player only offers the simplest controls. Also, the player is not optimized for advanced playback and customization. 

Conclusion

We went over the three easy methods of embedding videos in WordPress pages and posts. 

While the oEmbed method looks the easiest and the iFrame method might appear to offer control over how the video is displayed, you’ll find that using the Presto Player video plugin offers the best of both worlds – the ease of oEmbed and much more refined control than the iFrame method.

In addition, you get features such as calls-to-action, email gates, dynamic data overlays, and the ability to add custom presets – a fully customizable video embed solution at a fantastic price.

Now it’s your turn!

Mention your favorite method in the comments section and let us know if you have tried Presto Player. We are interested in how it went for you.

Leave a Comment

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

Try Presto Player Risk-Free for 30 Days!

You are protected by our no questions asked refund policy.

Don't Miss Our Biggest Discount

***LIMITED TIME ONLY***

100% Unconditional Money-back Guarantee

Purchase today & lock in your deal!

10269

Biggest Ever Black Friday Sale!

00
Months
00
Days
00
Hours
00
Minutes
00
Seconds
10270