Lesson Audio
Lesson Audio
Renders the audio set in the current lesson's LifterLMS Featured Audio setting (the Audio Embed URL field under Lesson Settings) as an audio player. There is nothing to pick in the widget itself: it reads the lesson it is placed on, so one widget in a lesson template covers every lesson.
Usage
Lesson template — Add it to a lesson template, typically above the Lesson Content widget, so any lesson with a Featured Audio URL gets a player without per-lesson editing; see How to Build a Lesson Template. Lessons with no audio set render nothing, so the template stays clean for text-only lessons.
Dripped lessons — Fill in Content To Show with the message students see before the lesson's drip date. Add a Lesson Drip Countdown dynamic tag or shortcode in that editor to show a live countdown in place of the player.
Custom player — To use Elementor's own Audio widget or another player, skip this widget and feed the Lesson Audio dynamic tag into that widget's URL control instead. Use this widget when you want the drip placeholder handled for you.
How it works
| Situation | Behaviour |
|---|---|
| Lesson is drip-locked for the current visitor | Renders the Content To Show text (shortcodes are processed) inside a le-drip-content-show wrapper instead of the player. Administrators and other users with LifterLMS Unrestricted Preview Access bypass the drip and see the player. |
| URL is an oEmbed provider (for example SoundCloud, Spotify) | Outputs the provider's embed via WordPress oEmbed. Mute audio and Enable autoplay do not apply to provider embeds. |
| URL is a direct audio file (self-hosted MP3 and similar) | Outputs an HTML5 <audio> player with browser controls, honouring Mute audio and Enable autoplay. Browsers that cannot play the file get a plain link to it. |
| Lesson has no Featured Audio | Renders nothing on the front end. In the Elementor editor it shows a notice and a sample MP3 so you can position and style the widget. |
Settings
Dimensions
The section opens with a note that the widget is currently only fully compatible with self-hosted audio links.
| Setting | Description |
|---|---|
| Dimension auto | Yes (default) makes the player fill the width of its container. No reveals Width. |
| Width | Fixed player width in pixels; default 640. Shown only when Dimension auto is No. |
Lesson Drip Restriction
| Setting | Description |
|---|---|
| Content To Show | Rich-text editor (accepts dynamic tags and shortcodes). Rendered in place of the player while the lesson is restricted by a drip date in the future. Default: Lesson content is restricted by Drip time in future. |
Behavior
| Setting | Description |
|---|---|
| Mute audio | Yes (default) loads the player muted; No loads it with sound. Applies to the HTML5 player only. |
| Enable autoplay | Yes (default) starts playback on page load; No waits for the visitor to press play. Applies to the HTML5 player only. Browsers block unmuted autoplay until the visitor has interacted with the page, so keep Mute audio on if you rely on autoplay. |
Style
This widget has no Style tab. Use the Advanced tab's Elementor background, border and spacing controls, or custom CSS targeting audio.le-lesson-audio.
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 widget has no live preview in the editor; the canvas shows the server-rendered output.
- The drip check uses the lesson's LifterLMS Drip Settings; a lesson with no drip schedule is always treated as available. To hide other elements on the same schedule, use the Lesson Drip Date condition.
- Related: Lesson Video, Course Audio (same controls, reads the course's featured audio), Lesson Audio dynamic tag.