How to embed videos in WordPress? To do so, you can use either of the three methods that will be described below. Let’s jump right in!
Method 1: Using a Block Editor or Something Similar
Embedding, in general, is proving to be more useful as it provides the user a more seamless experience on your site, and most importantly, she or he doesn’t have to leave your site to hunt for additional information. Embeds can also help deliver content diversity — which can further assist with users sticking around.
In any event, to embed a video using block editor, follow the steps along.
Step 1: Search for “Embed” in Your Block Editor, and Choose the Most Applicable Option
On your page, or your post, try adding a new block and type “embed.” Upon doing so, you’ll get all the embeds WordPress supports, and just a separate general embed option for trying to embed something else. See the screenshot below for reference:
Step 2: Grab the Embed URL
If it’s a simple YouTube video, select that option, and paste the URL, in the embed block that shows up. If it’s anything else, you need to do the same.
A couple of other things to note:
- In my references, I am using WordPress’ default block editor. However, you might be using something else. Regardless though, you should get something similar.
- For a full list of embeds supported by WordPress, you can navigate here.
- It should also be noted that the embeds should be responsive, so you don’t have to worry about mobile devices. All you have to make sure is that the “Resize for smaller devices. This embed will preserve its aspect ratio when the browser is resized” is turned on. I believe, by default, it will be; still, it’s better to make sure. If you can’t find that option, make sure to select your embed block, and it should be there on the right window section (or however you have it), where you can make tweaks to a particular block. See the screenshot below for reference.
Method 2: Using Iframes
If, for some reason, you don’t want to use the existing options, you do have to use your own iframe code, by using the custom HTML option.
Similar to how you typed in “embed” in the search, you have to type in “custom HTML,” > select it > and then grab your <iframe> HTML code. The only benefit I can see to this is that you can control the look and feel of your embed a little more. However, it might not be responsive (although, in my opinion, if your template is, you likely won’t have to concern yourself with it; still, better to check).
You May Also Want to Check Out:
- How to Edit Footer in WordPress?
- How to Exclude Specific Pages From the Pages WordPress Widgets
- How to Add a Contact Form on Your WordPress Site
- How to Fix the “Could Not Fully Remove the Plugin” Error
- How to Configure Cloudflare CDN (for Free) for Your WordPress Site, and Verify Whether or Not It’s Working
- How to Add Cloudflare to GoDaddy Managed WordPress
Method 3: Using Plugins
If the first two methods don’t fit well with you, you can always end up using a plugin for it. All you have to do is search for “embed,” or similar, when trying to find new plugins, (unless you have a specific plugin in mind) > explore around > and choose the one that you think will serve your needs the best.
Plugins can definitely provide more customization. Just keep in mind that it can slow your site down. My advice here would be to only go this route, if you honestly didn’t find what you were looking for with the first two methods, AND you’re actually going to be using the plugin regularly.
Bonus: Embedding Videos in Your Widgets
Depending on your theme, you can also embed videos in your widgets. Most would likely do it in their sidebar, but either way, whatever you may have, to embed videos in WordPress widgets, all you have to do is head over to the “widgets” section > and select the “video” option.
As mentioned, embedding has its benefits in keeping your users engaged with your content, while also increasing your UX metrics in analytics. If anything, you can run A/B tests to see if that’s making a difference.
But whatever your deal is, if you ever wanted to know about embedding videos in WordPress, use any of the three methods described above. Plus, if videos are, to all intents and purposes, that important to you, uploading them on your server is a less preferred option than directly grabbing them from third-party applications. This way, you also save up on disk space.