Skip to content

Template Overrides

The addon ships its own LifterLMS templates and lets you override any of them from your theme, so you can customize the markup without editing the plugin.

The addon registers its lifterlms/ folder as the template source and routes LifterLMS course, membership, lesson, quiz and assignment views through it. When a template is needed, the addon looks in this order:

  1. yourtheme/reign-lifterlms-addon/{template-name}
  2. yourtheme/{template-name}
  3. The addon’s own lifterlms/{template-name}

To override a template, copy it from the addon’s lifterlms/ folder into a reign-lifterlms-addon/ folder inside your (child) theme, keeping the same path, and edit your copy.

Template Used for
single-course.php Single course page.
single-llms_membership.php Single membership page.
single-llms-posts.php Single lesson, quiz and assignment pages.
course/template-single-course-sidebar.php The sticky single-course sidebar.
course/syllabus.php Course curriculum / syllabus.
course/lesson-preview.php Lesson preview item.
myaccount/dashboard-section.php A student dashboard section.
myaccount/navigation.php Student dashboard navigation.

Archive views (course archive, membership archive, taxonomy archives) are also routed through the addon’s template_include and lifterlms_locate_template filters, so a matching template in your theme overrides them.

Two helpers back this system and are available to developers:

  • reign_lifterlms_locate_template( $template_name, $template_path, $default_path ) returns the resolved path, respecting theme overrides.
  • reign_lifterlms_get_template( $template_name, $args, $template_path, $default_path ) locates and includes a template, passing $args into scope.

Both run through the reign_lifterlms_locate_template filter. See Helper functions.