Are you looking at how to embed video in your WordPress blog posts? Videos bring your website to life and are an excellent method to improve visitor engagement.
WordPress enables embedding videos from video hosting sites like YouTube, Vimeo, Facebook, Twitter, and many others.
We’ll teach you how to embed videos with ease in WordPress blog posts and pages.
Embeding videos in WordPress Posts and Pages
Auto-embeds
WordPress has a nice function called auto-embeds that allows your website to receive the embed code from popular video hosting providers like YouTube, Vimeo, and others automatically.
It’s as simple as pasting the video URL into the WordPress editor.
You can copy the YouTube URL for a video you want to embed, for example.
Then, simply paste the video URL to the content area:
Using the Video block
There are two ways to embed video by using the Video block, by self-hosting a video, or by pasting a URL to the video.
If you decide to self-host a video, you need to upload your video to the WordPress library, and then select a video to use it.
Note that hosting a video on your website is not recommended because it takes a lot of space, and it can slow down your website.
Also, it is better to host a video on other servers, since it is more SEO friendly. If needed, check out our article about WordPress and SEO.
The second option, which is recommended is to pate the video URL from where the video is hosted – YouTube, Vimeo, etc.
After you embed the video, you can change the video’s width, make it full-width, and change the alignment, among other things. On mobile devices, you can also add a caption and keep the video’s aspect ratio.
Conclusion
Embedding videos is easy in WordPress, you can use an auto-embed, or video blocks like Video, YouTube, etc. from the block list.
After you add a video, you can change the video settings to optimize it for desktop and mobile devices.