The video widget allows you to embed YouTube and Vimeo videos on a page.
Datadef element | Description |
---|---|
Width | Indicates the width of the widget relative to the total amount of horizontal space available. Note that including a secondary navigation or sidebar on your page will decrease the total horizontal space available for widgets. This setting affects widget widths on large screen sizes only. |
Type | Indicates whether the video is hosted on YouTube or Vimeo. |
Vimeo/YouTube > Video ID | The video ID. |
Finding the video ID
Vimeo
On Vimeo, videos URLs look something like:
https://vimeo.com/61111623
The video ID is the numeric string at the end of the URL, after the last slash. So in the above example, the ID is 61111623.
YouTube
YouTube video URLs can take several forms. The three example URLs below all reference the same video with an ID of FJEqZqwJvzc.
- https://www.youtube.com/watch?v=FJEqZqwJvzc
The ID appears a the end of the URL following 'v='. - https://www.youtube.com/embed/FJEqZqwJvzc?rel=0&controls=0&showinfo=0
The ID appears after 'embed/', but before '?'. Note that '?' and everything that follows may not be present in every URL of this format. - https://youtu.be/FJEqZqwJvzc
The ID appears at the end of the URL, after the last slash.