Adding a YouTube video to your website is really easy peasy. There are a couple of different ways to do it.
Third-party code, YouTube widget, and library entries.
Adding YouTube Shorts to your site? There will also be a section that covers how to add them.
Youtube Widget
STEP 1
You will need to visit YouTube first.
When you are on the same page as the video you want to add click on the URL box at the top of your browser and highlight the whole URL, then copy it (CTRL+C).
STEP 2
Head to the page or panel where you want to add the video.
Click in the content area to bring up the tooltip and click Widget.
Then add the YouTube video widget, paste the URL into the YouTube ID field and cut down the URL so that only the numbers and letters after /watch?v= are left.
Here is an example.
Before cutting down:
https://www.youtube.com/watch?v=dQw4w9WgXcQ&list=RDdQw4w9WgXcQ&start_radio=1
after cutting down:
dQw4w9WgXcQ&list=RDdQw4w9WgXcQ&start_radio=1
Then click insert widget and save the page / panel
Third-party code Widget
STEP 1
You will need to visit YouTube first.
When you are on the same page as the video you want to add click on the Share link and then Embed. You will then see some code pop up which you will need to copy (CTRL+C).
STEP 2
Nearly there!
Go back to Showoff and edit your page/panel.
Click into a new or existing section and then click on the magic wand (not really magic, but it is quite cool):
You will see a pop up load, look for a widget called "3rd Party Code" and click on it.
On the next box either right-click and choose "paste" or you can CTRL+V to paste:
When you click on INSERT WIDGET that's done.
SAVE! Then view your lovely page with a video in it.
TIPS
- If you want your video to be a certain size you can click on the SHOW MORE button and enter a custom width (the height will calculate automatically). A big video usually looks better in your site, a small one may cause the visitor to leave your site to see it bigger.
- If you want to change the thumbnail image shown on your video, YouTube lets you choose an image. They have a help page here:
https://support.google.com/youtube/answer/72431?hl=en-GB
Library entries
STEP 1
You first need to make a video library, you can find out more about this here: Creating a Video Library – ASP Knowledge Base
STEP 2
You will need to visit YouTube.
When you are on the same page as the video you want to add click on the URL box at the top of your browser and highlight the whole URL, then copy it (CTRL+C).
Step 3
Create a library entry, Fill out all of the relevant fields for the library entry, then in the YouTube Video ID field add the URL that you have copied, then cut down the URL so that only the numbers and letters after /watch?v= are left.
Here is an example.
Before cutting down:
https://www.youtube.com/watch?v=dQw4w9WgXcQ&list=RDdQw4w9WgXcQ&start_radio=1
after cutting down:
dQw4w9WgXcQ&list=RDdQw4w9WgXcQ&start_radio=1
Then save the library entry.
Youtube Shorts
When adding YouTube Shorts to your site using any of the methods above, you will need to edit the link to get it to work correctly.
if you are adding any shorts with the whole url like though third party code you will need to change the /shorts/ part of the URL to /watch?v=
Here is an example.
Before edit:
https://www.youtube.com/shorts/6oHkCfhlDnc
After edit:
https://www.youtube.com/watch?v=6oHkCfhlDnc
GPT RUN THROUGH
Add YouTube videos to your website
You can add YouTube videos to your ShowOff website in three ways:
- YouTube widget: Add a video directly to a page or panel using its video ID.
- 3rd Party Code widget: Add a video using YouTube’s embed code.
- Video library entry: Add a video to a collection in your video library.
Choose the method that works best for your content and follow the steps below. There’s also a section on adding YouTube Shorts.
Find your YouTube video ID
If you’re using the YouTube widget or a library’s YouTube Video ID field, you’ll need the video’s ID.
- Open the video on YouTube.
- Copy the URL from your browser’s address bar.
- Keep only the characters after
watch?v=and before the first&, if there is one.
For example:
Full URL:
https://www.youtube.com/watch?v=dQw4w9WgXcQ&list=RDdQw4w9WgXcQ&start_radio=1
Video ID:
dQw4w9WgXcQ
Tip: Leave out any extra details, such as
&list=...or&start_radio=.... You only need the video ID.
Add a video using the YouTube widget
- In ShowOff, open the page or panel where you want your video to appear.
- Click in the content area and select Widget.
- Choose the YouTube video widget.
- Paste your video ID into the YouTube ID field.
- Select Insert Widget.
- Save your page or panel, then preview it to check that the video displays and plays correctly.
Add a video using the 3rd Party Code widget
Step 1: Copy the embed code from YouTube
- On a computer, open the video on YouTube.
- Select Share, then Embed.
- Copy the full embed code from the box that appears.
Step 2: Add the code in ShowOff
- Return to ShowOff and edit the page or panel where you want to add the video.
- Click in a new or existing content section.
- Select Widget using the magic wand icon.
- Choose 3rd Party Code.
- Paste the complete embed code into the code field.
- Select Insert Widget, then save your page or panel.
- Preview the page to check that your video displays and plays correctly.
Tip: This widget uses the full embed code copied from YouTube. A video link or video ID on its own won’t provide the embedded player.
Add a video to a library
Step 1: Create a video library
If you haven’t created a video library yet, follow our Creating a Video Library guide.
Step 2: Get the video ID
Open your video on YouTube and copy its video ID using the instructions in Find your YouTube video ID above.
For the example in this guide, the ID is:
dQw4w9WgXcQ
Step 3: Create your library entry
- Open your video library and create a new entry.
- Complete the relevant fields for your video.
- Paste the video ID into the YouTube Video ID field.
- Save the library entry.
Add a YouTube Short
You can also add YouTube Shorts to your website. The steps depend on which method you’re using.
Using the YouTube widget or a video ID field
For a Short, the video ID is the part of the URL after /shorts/. If the link includes a ?, leave out the question mark and everything after it.
For example:
Shorts URL:
https://www.youtube.com/shorts/6oHkCfhlDnc
Video ID:
6oHkCfhlDnc
Paste this ID into the YouTube ID or YouTube Video ID field, then save your changes.
Using the 3rd Party Code widget
First, open the Short as a standard YouTube video:
- Copy the Short’s URL.
- Replace
/shorts/with/watch?v=. - Open the updated link in your browser.
Original link:
https://www.youtube.com/shorts/6oHkCfhlDnc
Updated link:
https://www.youtube.com/watch?v=6oHkCfhlDnc
Once the video opens, select Share, then Embed, and copy the full embed code. Follow the steps in Add a video using the 3rd Party Code widget to add it to your page or panel.
Helpful tips
- Check the viewing experience. Preview your page on desktop and mobile to make sure the video is easy to watch and fits comfortably within your layout.
- Choose a thumbnail. For videos you own, you can manage the thumbnail on YouTube. See YouTube’s thumbnail guide for instructions.
- Save and test. After making changes, save your page, panel or library entry, then view the relevant page and try playing the video.
Comments
0 comments
Please sign in to leave a comment.