It’s very easy to embed a video on your WordPress website. Especially when you want to embed a video from a service like YouTube, Vimeo or another video hosting platform.
To embed a video from YouTube in your WordPress post or page, just paste the URL of that video into your WordPress editor. The example below shows how I embedded this video into my post in WordPress.
How to embed a video on your WordPress website
When you paste the URL of any video from YouTube, Vimeo or Facebook, WordPress will automatically transform this URL to a fully working video on your page or post.
If the above “trick” does not work, the owner of the YouTube channel may have disallowed the embedding of their video by third parties.
The same works for tweets from Twitter, or (public) posts from Facebook. Just paste the URL of a Facebook post (or video) or a tweet into your WordPress editor:
The Month in WordPress: February 2018 https://t.co/5O1AcSGwqn
— WordPress (@WordPress) March 1, 2018
The WordPress editor will automatically generate a nice preview based on which platform you are embedding.
Resize an embedded video
It is also possible to define a custom size (in pixels) for your embedded video. In order to do this, you will need to use the following shortcode:
Replace the YouTube URL with any video URL that you want to embed, whether it’s YouTube or Vimeo.
Supported platforms for embedding
The WordPress editor now supports many platforms for embedding content. Of course this includes YouTube, Facebook, Instagram, Twitter, Vimeo and Hulo, but there are many more: