How to embed youtube video in Drupal?

by edmond_brakus , in category: PHP Frameworks , a year ago

How to embed youtube video in Drupal?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by cortez.connelly , 9 months ago


To embed a YouTube video in Drupal, you will need to follow these steps:

  1. Find the YouTube video that you want to embed and click on the "Share" button below the video.
  2. Click on the "Embed" tab to the right of the "Share" tab.
  3. You will see a text box containing an HTML code snippet that you can use to embed the video.
  4. Copy the entire code snippet.
  5. In Drupal, create a new page or edit an existing page where you want to embed the video.
  6. In the Drupal page editor, click on the "Source" button to switch to the HTML source editor.
  7. Paste the code snippet that you copied from YouTube into the HTML source editor.
  8. Save the page and preview it to make sure the video is displayed correctly.

Alternatively, you can use the Video Embed Field module to embed YouTube videos in Drupal. This module allows you to add a video field to your content types, so you can easily embed videos by pasting the video's URL into the field.