Setup & Installation

Install SmartVideo on LearnDash

Updated October 19, 2026

LearnDash is a WordPress LMS plugin for building and selling courses. Because LearnDash runs on WordPress, you can use the SmartVideo WordPress plugin’s block or [smartvideo] shortcode to put ad-free, optimized video in your lessons and topics. There’s no LearnDash-specific add-on or setting on our side: SmartVideo plays the video inside the lesson content, and LearnDash handles the course, enrollment, and curriculum as usual.

If you don’t have a SmartVideo account yet, create one at dash.swarmify.com/signup. Once you’re registered, head back here to get set up.

Step 1: Install the SmartVideo WordPress plugin

  1. In your WordPress admin, go to Plugins → Add New.
  2. Search for SmartVideo and install the plugin published by Swarmify.
  3. Activate the plugin.
  4. Copy the Swarm CDN Key from the Dashboard tab, the first screen after you log in to your Swarmify Dashboard.
  5. From the WordPress admin sidebar, click SmartVideo, paste your unique Swarm CDN Key into the field on the Setup tab, and click Enable SmartVideo.

The plugin handles the JavaScript snippet for you, so you don’t need to paste anything into your theme header. For more on this step, see Install SmartVideo on WordPress.

Step 2: Add a video to the lesson or topic body

In WordPress, go to LearnDash LMS > Lessons and open the lesson, or open a topic. LearnDash’s lesson-page documentation describes everything below the lesson title as a blank canvas powered by the same WordPress editor, and assumes the block editor. Use either option below.

Option A: the SmartVideo block

  1. In the editor, add a SmartVideo block by clicking the SmartVideo logo or searching for SmartVideo in the block inserter.
  2. With the block selected, paste your video’s URL into Video URL in the Video panel of the block settings sidebar.
  3. Update the lesson.

This Video URL field belongs to the SmartVideo block. It is not LearnDash’s Video URL field under Video Progression.

Option B: the [smartvideo] shortcode

Paste the shortcode anywhere in the lesson’s content body:

[smartvideo src="https://your-video.example.com/file.mp4"]

Replace the src value with the direct URL of your hosted MP4 (your own server, S3, Dropbox direct link, your WordPress Media Library, etc.). Swarmify fetches, optimizes, and delivers it from there.

The source must return the video bytes to an anonymous request, without a login, and remain available for as long as the video is embedded. Do not use an expiring or signed URL.

That source URL is written into your page’s HTML, so anyone viewing your page source can find it. If keeping the original out of reach matters to you, upload the video to your SmartVideo Library and embed the swarmify:// reference instead.

Focus Mode

LearnDash’s Enable Focus Mode setting, in LearnDash General Settings, removes the navigation, footer, and sidebars from lesson pages. It requires the LearnDash 3.0 template, chosen in the Active Template setting. Its Focus Mode Content Width and Focus Mode Sidebar Position settings control the layout; LearnDash says the content width applies to the actual lesson content. See LearnDash’s Focus Mode documentation.

We haven’t confirmed how body content, including a SmartVideo, renders in Focus Mode. After you turn it on, open a lesson as a learner and check that the video appears and plays.

When lesson completion depends on watching

A SmartVideo block or shortcode in the lesson body is not entered in LearnDash’s Video URL field, so it doesn’t use the Video Progression options. LearnDash’s own documentation says you don’t have to use video progression, and that without it you won’t have all the same options, but you can embed any type of video anywhere within your lesson or topic page content.

If you need lesson or topic completion tied to watching, use LearnDash’s Video Progression (on the Settings tab, under Display & Content Options) with a direct MP4 URL. That setup keeps LearnDash’s own HTML5 player. Once you turn on Background & HTML5 videos in SmartVideo (Growth and Pro plans), the SmartVideo plugin optimizes delivery of the file. Follow How to configure SmartVideo to work with LearnDash Video Progression. Do not paste a SmartVideo block or shortcode into the progression field.

What happens after I install?

The first time a lesson loads, Swarmify fetches your source MP4 and starts re-encoding it for optimized delivery. This usually takes about as long as the video runs, so a 10-minute lesson video takes about 10 minutes. While it’s processing, the player still works - it just serves the original until the optimized version is ready.

If a lesson video doesn’t appear after publishing:

  • Make sure the src URL points to a direct video file (.mp4, .webm, etc.), not a YouTube or Vimeo page URL.
  • Check that the SmartVideo plugin is activated and connected under SmartVideo in your WordPress admin sidebar.
  • If you used the shortcode inside LearnDash’s Video Progression Video URL field, move it into the lesson content body or use the steps in the Video Progression article above.

Hosting LearnDash course video? See the LearnDash video hosting overview.

Keywords: learndash, lms, course, lesson, topic, focus mode, shortcode, [smartvideo], wordpress lms, online course

Get SmartVideo live on your site

Set it up on WordPress, Shopify, Squarespace, or any platform in a few minutes.

14-day free trial · Card required, no charge until day 15