How to embed a video on your WordPress website

How to embed a video on your WordPress website

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

How to embed a video in WordPress
Click for a larger preview.

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.

Elegant Themes is offering more than
85 premium themes (including Divi) for only $89!
Check The Themes »

If the above “trick” does not work, the owner of the YouTube channel may have disallowed the embedding of their video by third parties.

Also read: YouTube vs Vimeo for WordPress videos: which one is better?

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 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:

Shortcode video WordPress

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:

  • SlideShare
  • Tumblr
  • Vine
  • Imgur
  • Flickr
  • DailyMotion
  • CollegeHumor

A full list of supported platforms can be found in the WordPress Codex. More of our video’s on our video channel (Dutch).

Rate this article

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Roger Overdevest

Owner of WPLounge.nl, the biggest Dutch blog about WordPress.