1. Home
  2. Knowledge Base
  3. HappyPress
  4. Embedding YouTube Videos in Gutenberg
  1. Home
  2. Knowledge Base
  3. General
  4. Embedding YouTube Videos in Gutenberg

Embedding YouTube Videos in Gutenberg

While most of the time, it is standard practice to upload videos to WordPress’ Media Library for inclusion on a site, occasionally it may be necessary to embed the video directly into a page. Two common reasons for this are:

  • The file is large and risks impacting site performance.
  • It is not possible access the original video file itself.

Gutenberg makes this super easy. Firstly, you’ll need to copy the embed link from YouTube. Click the ‘Share’ button underneath your chosen video. A pop-up window will appear. Click ‘Copy’ next to the embed link in this window.

Next, navigate to the page editor where you want to embed the video.

  1. Add a new block either from the + button at the top of the page or beneath an existing block in the page body.
  2. Select the ‘YouTube’ block.
  3. You will be prompted to paste the embed url in a text field. Do this and click embed and your video will appear in place on the page editor, complete with poster image pulled from YouTube itself.

Alternatively, as long as you make sure you are in a new empty block, simply pasting the embed url will be enough for the editor to automatically embed the video for you. Helpful!

Updated on August 5, 2020

Was this article helpful?

Related Articles

Not the solution you were looking for?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support