LMS & eLearning

Building a LearnDash Single Course Template in Elementor Theme Builder

Step-by-step build of a LearnDash Single Course template in Elementor Pro Theme Builder: the imported starter, which widgets to place, preview settings, the Materials Display option, prerequisites and payment buttons.

Building a LearnDash Single Course Template in Elementor Theme Builder

A Single Course template is the highest-value thing to build with the LearnDash Elementor add-on. It is the page a prospective learner lands on from a catalog or an ad, the page where they decide to enroll, and the page an enrolled learner returns to for the lesson list and their progress. Getting one template right fixes every course at once. This guide builds that template from the add-on's own starter, explains what each LearnDash widget contributes, and covers the settings that are easy to miss: preview IDs, Materials Display and the prerequisite messages.

It assumes LearnDash 4.7 or later, Elementor and Elementor Pro 3.15 or later, the LD30 template active, and the LearnDash Elementor add-on 1.0.9.1 installed.

Start from the imported library template

After activation the add-on imports a template named LearnDash Single Course into Templates > Saved Templates. Open Templates > Theme Builder, add a new Single template and choose the course post type. You can either build from the blank canvas and insert the saved template through the folder icon, or start blank and place the widgets yourself. The starter contains, top to bottom: a dynamic Post Title, a Course Certificate widget, a Course Infobar widget, Elementor Pro's Post Content widget and a Course Content widget. That order is deliberate and mirrors what the LD30 course page shows.

Place the widgets that matter

Course Infobar

The infobar is the enrollment and status strip. For a visitor it shows the current status, price and a Get Started section; for an enrolled learner it shows progress and steps completed. The widget wraps [ld_course_infobar]. Its Preview Settings section lets you pick a course and user so the editor shows a real state, and a toggle to preview the enrolled or not-enrolled variant. The Style tab exposes separate controls for each state: background and height for Not Enrolled and Enrolled, header and status labels, the price section, the Get Started button, and the progress indicator, percentage and steps text. Set colors once here rather than with custom CSS, because the markup differs between states.

Course Content

This widget renders the lesson, topic and quiz list, the expand-all button and the course heading, through [course_content]. Inside a course template its panel title is Course Content. It respects the course's "disable content table" setting, so a course that hides its table for visitors still hides it here. Its preview controls accept a course and user too, which matters because an empty-looking widget in the editor usually means the preview course has no steps.

Course Certificate

The certificate widget wraps [ld_course_certificate] and outputs nothing until the learner has earned the course certificate, so it can sit at the top of the layout without affecting visitors. It has Button Label and Message controls, with defaults of "Download Certificate" and a short congratulation message, plus a preview course and user, and styling for background, border, title, icon and the download button.

Payment Buttons and Course Progress

If your design wants an enroll button somewhere other than the infobar, such as a sticky sidebar, add the Payment Buttons widget, which wraps [learndash_payment_buttons] and takes a course ID (leave it empty on a template to use the current course). The Course Progress widget wraps [learndash_course_progress] with course and user IDs for a standalone progress bar. Both inherit LearnDash's access logic, so they show the right state per user.

Post Content

Use Elementor Pro's Post Content widget for the course description. The add-on filters the_content on courses, so this widget is where the prerequisite and course points messages appear when a learner does not qualify, and where the Materials are attached depending on the setting below. Removing it removes those messages too.

Set Materials Display

Open the document settings (the gear icon) and find Materials Display. The three options are tabs, append to bottom and not displayed. Tabs reproduces the LD30 Content and Materials tabs around the description; append puts the materials under the description with no tab bar; not displayed hides them. The imported starter uses append. Our guide to course materials in Elementor templates compares the three and shows the filter that changes the choice per course.

Understand what happens for restricted learners

On a course page the add-on checks, before showing content, whether the course has prerequisites the user has not met and whether a course points requirement is unmet. If either fails and the user cannot bypass (administrators with the bypass setting on, or via the learndash_prerequities_bypass filter), the description is replaced with LearnDash's prerequisite or points message template. The infobar and content widgets render their own not-enrolled states. You do not have to add conditions in Elementor for these; see our note on setting a course prerequisite for how that requirement is configured.

Preview IDs and the editor

Widgets with a preview section resolve a post to show. If you set a preview course they use it; otherwise the add-on asks for one through the learndash_elementor_widget_preview_id filter and falls back to the first published course. On a site with many courses, pick a course that has lessons, a price and at least one enrolled test user, so every widget state is visible while you design. The preview user control only affects the editor; on the front end the logged-in user is always used.

Publish conditions

When you publish, set the condition to Include > Courses > All. If some courses need a different design, create a second Single Course document with a condition on specific courses or a category; Elementor applies the more specific one. Courses without any applying document fall back to the normal LD30 page, or to auto-insertion if the course itself is edited in Elementor.

Test like a learner

Check four states: a logged-out visitor on a paid course, a logged-in user not enrolled, an enrolled user partway through, and a user who has completed the course and earned the certificate. The infobar should change for each, the content list should show lock icons for the enrolled user where progression applies, and the certificate block should appear only for the last. If a widget shows nothing for everyone, the usual causes are a stale page cache or the course having no steps; our overview of how caching layers interact explains why logged-in and logged-out users can see different things.

When the design needs more

Templates built this way cover the normal course page. Projects that add instructor bios from a custom field, pricing tables that depend on the user's group, or a sales layout that differs entirely from the enrolled layout need either Elementor Pro display conditions tied to LearnDash data or a small custom widget. That is routine work for our LearnDash customization team; see our LearnDash services, or ask a LearnDash developer to review a design before you build it.

Frequently asked questions

Why does my course template show the lesson list twice?

Either the Post Content widget contains a [course_content] shortcode typed into the course description, or the course itself was also edited in Elementor and auto-insertion added a listing. Remove the shortcode or turn on Disable Widget Auto Insertion in the Elementor settings tab.

Can I show the enroll button in a sidebar?

Yes. Use the Payment Buttons widget with an empty course ID inside the course template. It renders the same buttons as the infobar and hides them for enrolled users.

Does the template apply to the course grid or archive page?

No. A Single document applies only to the single course page. The archive and catalog pages are separate Elementor archive templates or pages using the Course List widget or Course Grid.

What happens to the Materials field if I choose "not displayed"?

The content stays saved on the course but is not output anywhere by this template. Switching the setting back shows it again without re-entering anything.

Add WorldWin Coder to your preferred sources

Add worldwincoder.com as a preferred source on Google, or open this article in your AI assistant to use it as a source.

· Developers and project managers

Articles written and reviewed by the developers and project managers at WorldWin Coder, who build and maintain websites, web applications and mobile apps on WordPress, Moodle, PHP, Laravel, CodeIgniter and Flutter.

Free consultation

Need help with LearnDash?

Tell us what you are working on. A developer who does this every week reads your message and replies within one business day with next steps and a free quote.

  • Free consultation and quote
  • NDA on request
  • You own the source code
  • Reply within one business day

Tell us about your project

Add budget and timeline optional, helps us quote faster

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Keep reading

Have something to build, fix or move?

Tell us where you are. A developer reads every inquiry, and you get next steps and a free quote within one business day.