Course Video
Course Video
Embeds the video set in the current course's Featured Video field (the LifterLMS course editor's Video Embed URL). The widget reads the URL from the course in context — a course page, or the parent course of a lesson page — and renders the matching player with the size, controls, mute and autoplay options set here.
Usage
Course template — Place it near the top of a course template so every course shows its own featured video without per-course editing; see How to Build a Course Template. Courses with no Featured Video set render nothing, so the layout stays clean.
Lesson pages — Because course context also resolves on lesson pages, you can drop the widget into a lesson template to show the course's intro video on every lesson. For the lesson's own video, use the Lesson Video widget instead.
Custom player markup — If you only need the URL (for an Elementor Video widget, a link, or a lightbox), use the Course Video dynamic tag rather than this widget.
How it works
The widget takes the URL from the course's Featured Video setting and picks a player from the URL:
| Featured Video URL | Player | Options honoured |
|---|---|---|
YouTube (youtube.com / youtu.be) | YouTube iframe embed | Controls, mute, autoplay, width and height. Disabling controls also hides related videos and keyboard shortcuts. |
Vimeo (vimeo.com) | Vimeo iframe embed | Controls, mute, autoplay, width and height. Hiding controls requires a Vimeo Plus account or higher. |
Direct file URL (for example a self-hosted .mp4) | WordPress HTML5 <video> player | Controls, mute, autoplay, width and height. |
| Any other URL WordPress can embed (Wistia, Loom, and other oEmbed providers) | WordPress oEmbed | Width and height only; Enable controls, Mute audio and Enable autoplay are ignored. |
| Situation | Behaviour |
|---|---|
| No Featured Video set, or the URL is invalid / cannot be embedded | Nothing is rendered on the front end. In the Elementor editor a placeholder YouTube video and a preview message are shown instead. |
| LifterLMS Advanced Videos add-on active and Prioritize the options set in the advanced video plugin is Yes | For YouTube, Vimeo and Wistia URLs the add-on builds the embed and its own settings override this widget's options. |
| Widget used outside a course or lesson page | No course is in context, so nothing is rendered. |
Settings
Dimensions
| Setting | Description |
|---|---|
| Dimension auto | Yes (default) lets the player fill the width of its container. No renders the player at a fixed pixel size set by Video ratio and Width. |
| Video ratio | Aspect ratio used to work out the height from the width: Classic Film 3:2, Standard, Monitor 4:3, HD Video 16:9 (default) or Cinemascope 21:9. Shown only when Dimension auto is No. |
| Width | Player width in pixels; default 640. Shown only when Dimension auto is No. |
Options
The section opens with a reminder that these options only apply to YouTube, Vimeo and self-hosted videos, and that Vimeo needs a Plus account or higher to remove the controls.
| Setting | Description |
|---|---|
| Prioritize the options set in the advanced video plugin | Shown only when the LifterLMS Advanced Videos add-on is active. Yes (default) lets the add-on's settings override the three options below for the providers it supports; No uses this widget's options. |
| Enable controls | Yes (default) shows the player's controls. No hides them and adds the le-video-no-controls class to the wrapper. |
| Mute audio | Yes (default) starts the video muted. No starts it with sound. |
| Enable autoplay | Yes (default) starts playback when the page loads. No waits for the visitor to press play. Browsers block autoplay with sound unless the visitor has interacted with the page, so keep Mute audio on Yes when using autoplay. |
Style
The widget has no Style tab; size the player with the Dimensions section and use the Advanced tab for spacing and background.
Advanced
The Advanced tab holds Elementor's own layout, motion, responsive and custom-CSS controls — see Elementor's documentation. Lifter Elements adds one section, Conditional Logic, which shows or hides this widget by the visitor's LifterLMS status — see the Conditional Logic reference.
Notes
- The output wraps the player in a
div.le-course-videowith adata-autosizeattribute; target that class for custom CSS. - The Lesson Video widget is built on this one and shares the same settings, reading the lesson's video instead.
- Related: Course Audio, Course Video dynamic tag.