This article applies to Drupal Lite.
A YouTube video can be added to a page using a custom block. The embedded video will be the width of the region it is in and the height will scale appropriately.
Embedding a YouTube Video
Find the YouTube video share link
- View the video on YouTube
- Select the Share button in the toolbar just below the video
- Select the Copy button next to the URL
- If you want the video to start at a certain timecode, select the Start At box and enter the time where the video should start playing.
Add the YouTube video to the Media Files
- Select Content in the administrative toolbar.
- Select the Media tab.
- Select the Add Media button.
- Select Remote Video.
- Enter a Name
- Paste the YouTube URL that was copied in the instructions above
- Select Save.
The video can be embedded into a field that has the wsiwyg toolbar, or it can be added using a Custom Block.
Add the YouTube Remote Video using the Insert Media button using an existing field
- Locate the page and select Edit.
- Select the Insert Media button in the toolbar.
- Select Remote Video in the left navigation tabs.
- Select the video that was added using the instructions above.
- Select the Insert Checked button.
Add the YouTube Remote Video using a Custom Block
- Log in to the site
- Find the page to add the video
- Select Layout
- Select Add Block in the region where the video will be placed. The Choose a Block palette is displayed.
- Select Create Content Block at the top of the palette. The Add a New Custom Block palette is displayed.
- Select Text. The Configure Block palette is displayed.
- Enter a Title
- Deselect the Display Title checkbox if you do not want the title displayed.
- Use the instructions above to add the Remove Video.
- Select Add Block. The palette closes and the Layout Builder is displayed.
- Select Save Layout at the top of the page.