YouTube Element

Last Update: April 17, 2024

Adding a YouTube video to your website has never been easier thanks to the Avada Builder YouTube Element. Just add the YouTube video ID, and away you go. It’s even got built in responsive features, so you don’t have to worry about the size of your videos! Read below to discover how to make the most of the YouTube Element, and watch the video below for a visual overview.

For privacy reasons YouTube needs your permission to be loaded.

How To Use The YouTube Element

Adding a YouTube video to your content couldn’t be easier. To start, add the element into your desired column.

Now, you have the options window open. The first and most important step is to enter the YouTube video ID into the Video ID field. This is the end section of the URL; for example, the Video ID for https://www.youtube.com/watch?v=UDyNsnB_COA is UDyNsnB_COA.

In the Alignment field, you can choose the video’s alignment in the column you place it in. Set the dimensions of the video. This is in pixels, but you just enter a number. You can enter just the width or the height, and the other value will be auto-calculated, assuming a 16:9 aspect ratio. If you have a video with a non-16:9 aspect ratio, enter both width and height.

There are a couple more options you can select. One is Autoplay, which is set to No by default, as it’s generally not considered good practice for videos to autoplay, and there is an option for additional API parameters. The most common of these is &rel=0. For a full list of YouTube parameters, please see this document. The YouTube Element also includes a Video Facade option to help with page speed. Once you have finished with the options, simply click save, and the video will be inserted into your page.

Element Options

General

HeadingDescription
Video ID or UrlFor example the Video ID for https://www.youtube.com/watch?v=CbOQqvQDrVQ is CbOQqvQDrVQ.
AlignmentSelect the video's alignment.
DimensionsIn pixels but only enter a number, ex: 600.
Start TimeSpecify a start time for the video (in seconds).
End TimeSpecify an end time for the video (in seconds).
Autoplay VideoSet to yes to make video autoplaying. Muted video required for autoplay video.
Mute VideoSet to yes to make video muted.
Additional API ParameterUse an additional API parameter, for example, &rel=0 to only display related videos from the same channel.
Title AttributeSet the title attribute for the iframe embed of your video. Leave empty to use default value of "YouTube video player #".
Video FacadeEnable video facade in order to load video player only when video is played.
Thumbnail SizeSelect the video's preview thumbnail size. The sizes are YouTube standard, and not all sizes are available for every video. Leave empty for auto selection depending on video dimensions.
MarginEnter values including any valid CSS unit, ex: 4%.
Element VisibilityChoose to show or hide the element on small, medium or large screens. You can choose more than one at a time.
CSS ClassAdd a class to the wrapping HTML element.
CSS IDAdd an ID to the wrapping HTML element.

Extras

HeadingDescription
Structured DataEnable video structured data for better SEO.
Upload DateSelect video upload date.
Video DurationInsert the video duration.
Video TitleInsert the video title.
Video DescriptionInsert the video description.