#
YouTube Embed
Effortlessly embed YouTube videos on your website to enhance engagement and showcase content.
If your website runs on Bootstrap 5+ and Solodev version 11.0.66 or higher, use the shortcode below. Otherwise,
Note:
If you need to check your Solodev version, go to the login page and locate the version number under the log in button.
#
YouTube Embed - Newer Versions
Attributes:
Shortcode:
[youtube_embed embed_link_id="5BNPeFHU7QQ"]
Example:
[youtube_embed embed_link_id="5BNPeFHU7QQ" ratio="4x3" id="my-id" class="my-class" title="Youtube Video" allowfullscreen="false"]
#
YouTube Embed - Older Versions
The YouTube video shortcode has two attributes, one required and one optional, listed below.
Attributes:
Shortcode:
[youtube id="5BNPeFHU7QQ"]
Example:
[youtube id="5BNPeFHU7QQ" aspect_ratio="4by3"]
#
Video ID
To obtain the video id:
Browse to the YouTube page where your video is hosted.
Click the Share button on the right just below the video.
Select the Embed Link and copy the video's YouTube ID. For example, if the link reads
https://www.youtube.com/embed/5BNPeFHU7QQ
, you only need to copy the 5BNPeFHU7QQ after the forward slash.Insert the shortcode at the appropriate place in the tpl or html file associated with your page.
[youtube id="5BNPeFHU7QQ"]
- Click Publish.
Note:
In terms of the best practices, we don't recommend uploading any videos to the CMS due to file size and playback performance. For alternate streaming options such as Wowza, Vimeo, or Wistia, please contact us.