How can we help you today?

How to Embed a YouTube Video Playlist into a Modern SharePoint Page using the Code Design Element

This tutorial will demonstrate how to add a YouTube video playlist to your SharePoint page using the ShortPoint Code Design Element.


page with YT playlist


Quick Walkthrough

1. Go to the YouTube playlist you want to embed into your SharePoint page, and in its URL, copy everything after &list=.

2. Copy the embed code below and replace PlaylistID with the Playlist ID you just copied in Step 1:

<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=PlaylistID" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

3. Go to the SharePoint page where you want to add the playlist and edit the ShortPoint Web Part.

4. Click the plus icon and insert the Code Design Element.

5. Paste the code in the HTML field and customize it.

6. Go to the Design tab, enable Sandbox mode and Auto Resize.

7. Click the green checkmark to apply your changes.

8. Click Save to keep your changes.


TABLE OF CONTENTS


Prerequisites

  • You must have the latest version of ShortPoint SPFx installed on your SharePoint environment.
  • You must be a ShortPoint Designer with an active license.

Interactive Tutorial

Before starting the interactive tutorial, go to the YouTube playlist you want to embed into your SharePoint page and copy everything after &list=. This random series of letters and numbers is your Playlist ID:


Playlist ID


Then, copy the embed code below and replace PlaylistID with the Playlist ID you just copied:


<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=PlaylistID" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>



Step-by-step Tutorial

Follow the detailed guide to learn how to embed a YouTube video:


Step 1: Copy the Embed Code

  • Go to the YouTube playlist you want to embed into your SharePoint page and copy everything after &list=. This random series of letters and numbers is your Playlist ID:


Playlist ID

Then, copy the embed code below and replace PlaylistID with the Playlist ID you just copied:

<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=PlaylistID" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

Step 2: Edit the ShortPoint Web Part

  • Go to the SharePoint page you want to use and click Edit:

Edit


  • Click the close icon to leave the Toolbox:


close icon

  • Select the ShortPoint tag.
  • Click the Edit Properties icon:

Edit properties icon


Step 3: Insert the ShortPoint Code Design Element

  • Choose where you want to add the Code Design Element and click the plus icon to see the library of Design Elements:


plus icon

  • Look for Code using the search bar and select it.

Step 4: Paste Embed Code

  • Paste the code in the HTML field and customize it according to your needs:

paste code


Step 5: Enable Sandbox Mode and Auto Resize

  • Enable Sandbox mode and Auto Resize to fit the video inside the container.

enable Sandbox Mode and Auto Resize


Step 6: Save

  • Click the green check mark to apply your changes.
  • Click the eye icon to see your page in real-time:

eye icon


  • Click Save to keep your changes:

Save


Well done! You can now add YouTube video playlists to your SharePoint page.


Related articles:

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 83 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more