Designing Certificates in the LifterLMS Certificate Builder
A design-focused guide to the LifterLMS certificate builder in the block editor: page size, orientation, margins, background images, fonts, layout…
Read articleBuilding a course site with no courses in it is guesswork. You cannot judge a theme, a catalog layout or a checkout flow until there is realistic content to look at. A LifterLMS sample course fixes that in minutes, and the course generator built into LifterLMS goes further: it can turn a course outline into real courses, sections and lessons from a single file.
This tutorial is for site builders, agencies and course creators who want to prototype before committing. It covers the ready-made sample courses, importing your own outline, generating courses from code, and cleaning up before launch. The importer and generator behaviour was checked in the LifterLMS 10.3 source.
Sample content earns its keep in a few specific situations:
If you are still deciding how to organize the course itself, read how to structure an online course in LifterLMS alongside this guide.
LifterLMS offers free courses and templates that download from LifterLMS.com and import in one click. You can reach them in two places.
The last step of the setup wizard is headed "Start with a sample course or template...". Tick the courses you want and finish the wizard; they are downloaded and imported into the site. If you skipped it, rerun the wizard from LifterLMS > Status, on the Tools & Utilities tab, with Return to Setup Wizard. Rerunning it does not remove existing content, as the LifterLMS documentation on rerunning the wizard confirms.
Go to LifterLMS > Import. Below the upload form, a section lists courses and templates you can "Download and import" from LifterLMS.com. Click Download & Import on the one you want. The options include LifterLMS's own quickstart training course and a set of free white-label courses described in the LifterLMS importing documentation.
The plugin also ships a sample export file, sample-data/sample-course.json inside the plugin folder, containing "The Official Quickstart Course for LifterLMS": four sections, 13 lessons and an access plan. It is a useful real-world example of the export format if you plan to write your own files.
After any import, open the course and check its status, its access plans and its author. Imported courses keep the settings in the file, so a template may arrive published, with a free access plan, or both.
Ready-made courses show you what a LifterLMS course looks like, not what yours will look like. For that, describe your own outline in a JSON file and import it. The importer is built on the LifterLMS generator, which accepts much simpler files than a full export.
A minimal file needs a _generator value and a list of courses, each with sections and lessons:
{
"_generator": "LifterLMS/BulkCourseGenerator",
"courses": [
{
"title": "Bookkeeping Fundamentals",
"status": "draft",
"excerpt": "Learn to keep clean books in four weeks.",
"difficulty": "Beginner",
"categories": [ "Finance" ],
"tracks": [ "Small business certificate" ],
"sections": [
{
"title": "Getting set up",
"lessons": [
{ "title": "Welcome and how this course works", "content": "<p>Placeholder.</p>" },
{ "title": "Choosing accounting software" },
{ "title": "Your chart of accounts" }
]
},
{
"title": "Day-to-day bookkeeping",
"lessons": [
{ "title": "Recording sales" },
{ "title": "Recording expenses" }
]
}
]
}
]
}
Save it as outline.json, go to LifterLMS > Import, upload it and click Import. In seconds you have a draft course with two sections and five lessons, filed under the right category, difficulty and track, ready to open in the course builder.
How the generator reads the file:
_generator value.Use LifterLMS/SingleCourseGenerator instead if the file describes one course at the top level rather than a courses list. Lessons can also include quizzes and courses can include access plans; copy the structure from an export of a real course rather than guessing field names.
For repeatable prototypes, such as an agency starter site, generate the outline from code. The same LLMS_Generator class the importer uses is available to your own scripts, and its developer reference lists its methods.
This script builds a course with a configurable number of modules and lessons. Run it with WP-CLI's eval-file command on a staging site:
<?php
/**
* Usage: wp eval-file llmsx-prototype.php --user=admin
*/
$modules = 4;
$per_mod = 5;
$sections = array();
for ( $m = 1; $m <= $modules; $m++ ) {
$lessons = array();
for ( $l = 1; $l <= $per_mod; $l++ ) {
$lessons[] = array(
'title' => sprintf( 'Lesson %d.%d', $m, $l ),
'content' => '<p>Placeholder lesson content.</p>',
);
}
$sections[] = array(
'title' => sprintf( 'Module %d', $m ),
'lessons' => $lessons,
);
}
$generator = new LLMS_Generator(
array(
'_generator' => 'LifterLMS/BulkCourseGenerator',
'courses' => array(
array(
'title' => 'Prototype course',
'categories' => array( 'Prototype' ),
'sections' => $sections,
),
),
)
);
if ( is_wp_error( $generator->set_generator() ) ) {
WP_CLI::error( $generator->error->get_error_message() );
}
$generator->generate();
if ( $generator->is_error() ) {
WP_CLI::error( $generator->error->get_error_message() );
}
WP_CLI::success( 'Created course IDs: ' . implode( ', ', $generator->get_generated_courses() ) );
The --user=admin flag matters: the generator assigns content to the current user, and without it there is no current user. Every course from this script is a draft in a "Prototype" category, which makes clean-up easy.
The generator also has hooks such as llms_generator_new_course and llms_generator_new_lesson if you want to add extra settings after each post is created, and llms_generator_is_image_sideloading_enabled to stop it downloading images.
When you need volume rather than structure, for example 200 courses to test catalog pagination or caching, the LifterLMS WP-CLI commands include a generate subcommand for each resource. wp llms course generate --count=50 --title="Load test course" creates 50 basic courses through the REST API layer. It creates flat records only, with no sections or lessons, so combine it with the generator above when you need full courses. Our guide to LifterLMS WP-CLI commands covers the options and safety habits.
| Method | Best for | Creates |
|---|---|---|
| Ready-made sample course | Seeing a finished course, theme testing | Complete courses with real content |
| JSON outline via Import | Your own structure, no code | Courses, sections, lessons, terms |
| LLMS_Generator in PHP | Repeatable or parameterised prototypes | Anything an import file can describe |
wp llms course generate | Volume and performance testing | Many simple course records |
Prototype content left on a live site causes real problems: placeholder courses in the catalog and search results, test access plans someone can buy, and empty lessons indexed by search engines.
If you liked a prototype's structure, keep it as the skeleton of the real course instead: rename the lessons, replace the placeholder content, and publish when ready.
On the last step of the setup wizard, and on the LifterLMS > Import screen, where courses and templates can be downloaded from LifterLMS.com with Download & Import.
Not directly. The importer accepts LifterLMS JSON files only. Convert the spreadsheet into the JSON structure shown above, with a short script or by hand for small outlines.
No. Imports create new posts. They may add categories, tags, tracks, difficulties and, if the file includes author details, users.
Not with the core importer, which reads LifterLMS files. Moving from another platform is a migration project; see our LifterLMS migration guide.
Import one sample course to see how a finished LifterLMS course looks with your theme, then write your own outline as a JSON file and import it. Within an hour you will have a clickable prototype of your real course that you can review with colleagues or clients.
If you want a reusable starter site for many clients, an importer for your own spreadsheets or another platform's exports, or a full migration, our LifterLMS development team builds those tools on the same generator. Contact us with the outline or export you want to start from.
A design-focused guide to the LifterLMS certificate builder in the block editor: page size, orientation, margins, background images, fonts, layout…
Read article
A complete reference to LifterLMS certificate merge codes: what each one inserts, where the value comes from, when it is filled in, how to format…
Read article
How to add audio to LifterLMS lessons with the Audio Embed URL field or the Audio block, keep paid audio files private, and deliver a course as a…
Read articleSkip the trial and error. Get specialist LifterLMS help and ship faster.