Skip to content

Template Overrides

The addon overrides LearnDash 30 (LD30) templates to apply the Reign layout. You can override any of them from your theme without touching the plugin.

Templates are located through the addon’s learnmate_locate_template() helper in this order:

  1. Child theme copy
  2. Parent theme copy
  3. Plugin copy (the addon’s own learndash/ templates)

The first match wins. To customize a template, copy the addon’s version into your theme, keeping the same relative path, and edit your copy.

The addon ships overrides under its learndash/ directory, including:

  • single-sfwd-courses.php, single-sfwd-groups.php
  • ld30/archive-sfwd-courses.php, ld30/taxonomy-ld_course_category.php
  • ld30/templates/course.php, ld30/templates/group.php
  • ld30/templates/ld_course_list_template.php
  • ld30/templates/modules/infobar.php, ld30/templates/modules/prev-next.php
  • ld30/templates/focus/sidebar.php
  • ld30/ld-template-parts/ (course curriculum, list views 1-3, course topbar)
  • templates/archive-groups.php

If you need to redirect a single template rather than copy the whole file, use:

apply_filters( 'learnmate_locate_template', $template, $template_name );

The addon consumes Reign theme hooks and customizer values rather than defining its own color controls. It has no Kirki dependency and, on Reign 8.0.0, reads the theme’s --reign-* CSS variables so course and group pages follow the theme’s token-based colors (light, dark, and auto). It also reads theme mods for archive headers, archive layout, single header images, and breadcrumb settings, and consumes filters such as reign_customizer_supported_post_types, reign_breadcrumbs, and reign_page_header_section_title.

Per-item choices are stored in standard meta, not a custom table:

  • rla_course_layout / rla_group_layout - the single-page layout marker (currently udemy).
  • rla_ccf_enable / rla_ccf_features - course features toggle and rows (icon + text).
  • rla_gcf_enable / rla_gcf_features - group features toggle and rows.
  • _course_image_id / _group_image_id - per-item cover image.
  • _reign_linked_course (group meta) and reign_bp_group_field (course meta) - the course-to-BuddyPress-group link.