Course page layout
Reign shows a single course in one layout, whichever LMS runs the course:
- Header: breadcrumbs, title, short description, rating, instructors and last-updated date.
- Card. It sits beside the header on desktop and under it on phones. It holds the image or video, price, the LMS’s own enrol or continue button, progress, “This course includes” and the course widget area.
- Main column: notices, what you’ll learn, course content, requirements, description, instructor and reviews.
Supported in 8.1.0: LearnDash, Tutor LMS, LifterLMS, Sensei LMS and LearnPress. More LMS plugins are added one at a time.
The layout only arranges what the LMS prints. These parts stay the LMS’s own, so its settings and add-ons keep working.
- The enrol button, curriculum, reviews and progress.
- Access rules, payments, prerequisites and drip.
A section with no data is not printed.
Each adapter follows the LMS’s own course template. It calls the same functions and fires the same hooks in the same order. Nothing an LMS or its add-ons print is lost. What each adapter keeps is listed below.
LearnDash
Section titled “LearnDash”- The certificate alert, info bar and resume button.
- The content tabs: description, materials, reviews and any add-on tab, through
learndash_content_tabs. - The course content list, the prerequisite and points notices, and the login modal.
- All the
learndash-course-*hooks.
A member held back by a prerequisite sees only LearnDash’s notice, as on LearnDash’s own page.
Reign turns off LearnDash’s Modern course view (Design & Content) on this page, through learndash_theme_supports_views. Its own enrol card then never repeats the Reign card. Lessons and topics keep the Modern view. Reign’s group page keeps LearnDash’s LD30 group view for the same reason.
Tutor LMS
Section titled “Tutor LMS”- The login gate, which applies when visitors must log in to see a course.
- The lead info: rating, title, categories, wishlist and share.
- The intro video.
- The course tabs: course info, reviews, Q&A, announcements and any tab added through
tutor_course/single/nav_items. - The entry box: progress, enrol or continue, price and course facts.
- The requirements, tags and audience boxes.
- Every
tutor_course/single/*hook.
The instructor box uses Tutor’s profile, job title, rating and student count. Tutor’s learning area (?subpage=) keeps Tutor’s own screen.
LifterLMS
Section titled “LifterLMS”These pieces move into the card and the page sections.
- The course video.
- The course information: length, difficulty, tracks, categories and tags.
- The author and the prerequisite notice.
- The pricing table with its enrol buttons.
- Progress with the continue button.
- The syllabus, and the reviews with their form.
Everything else stays in the description where LifterLMS prints it. That includes the sales text visitors see and the course audio. It also includes anything an add-on hooks into lifterlms_single_course_before_summary or lifterlms_single_course_after_summary.
Courses edited in the block editor work the same way. The LifterLMS blocks in the content are printed in the layout instead. These are course information, instructors, pricing table, progress, continue button and syllabus. A part you removed stays removed. That holds whether you unhooked its function or deleted its block.
Sensei LMS
Section titled “Sensei LMS”It depends on how the course was built.
Older courses use Sensei’s own course template. These move into the card and the page sections.
- The course video.
- The prerequisite and self-enrolment notices.
- Progress and the Take This Course form.
- The contact teacher link, modules and lessons.
Every Sensei hook still fires in Sensei’s order. These are sensei_before_main_content, sensei_single_course_content_inside_before and _after around the description, sensei_pagination, sensei_after_main_content and sensei_sidebar. The layout replaces only Sensei’s page wrapper and sidebar.
Courses built in the block editor show Sensei’s blocks. Take Course (or the course actions, continue and results buttons), progress and contact teacher go in the card. The course outline goes under Course content. A block you deleted stays out.
LearnPress
Section titled “LearnPress”The layout uses LearnPress’s course page layout. You find it under LearnPress > Settings > Courses. It is the single course layout “Modern”, the default on new sites.
LearnPress builds that page from three lists. The layout prints each item from them in LearnPress’s order.
- Header: the title, instructor, categories and last updated date.
- Card: the image, price, learning progress, course facts, buttons, share links, featured review and course sidebar.
- Main column: the description, features, target audiences, requirements, curriculum, materials, FAQs, instructor and comments.
- End of page: related courses.
Every learn-press/single-course/modern/* filter still runs. An item an add-on or snippet adds, such as a rating or a new button, prints. An item you removed stays removed. Sites on the older “Classic” layout keep LearnPress’s own page. So do lesson and quiz screens and offline courses.
Switch it off
Section titled “Switch it off”- Per LMS. Go to Appearance > Customize > Content Layouts > Courses: Course page. Set Course page layout to LMS default.
- Per course, in code.
add_filter( 'reign_course_layout_enabled', function ( $enabled, $course_id ) { return 123 === $course_id ? false : $enabled;}, 10, 2 );- Child theme. If your child theme has the LMS’s own course template, that template is used instead. The file names are:
- LearnDash:
learndash/ld30/course.php,learndash/course.phporsingle-sfwd-courses.php. - Tutor LMS:
tutor/single-course.php. - LifterLMS:
lifterlms/content-single-course-before.phporlifterlms/content-single-course-after.php. - Sensei LMS:
sensei/single-course.php. - LearnPress:
learnpress/single-course-layout.php,learnpress/single-course.phporlearnpress/content-single-course.php.
- LearnDash:
Add something to a section
Section titled “Add something to a section”Every section fires reign_course_section_{id}, even when the LMS has no data for it. Whatever you print there shows inside the section, under its heading. Use this to add a rating from a reviews plugin, or a “What you’ll learn” list from a custom field.
add_action( 'reign_course_section_learn', function ( $course_id ) { $items = (array) get_post_meta( $course_id, 'my_learn_items', true ); if ( $items ) { echo '<ul class="reign-course__checklist">'; foreach ( $items as $item ) { echo '<li>' . esc_html( $item ) . '</li>'; } echo '</ul>'; }} );Section IDs: breadcrumb, title, subtitle, byline (header); media, price, enroll, progress, includes, widgets (card); notices, learn, curriculum, requirements, description, instructor, reviews (main column).
Other places to print:
| Hook | Where |
|---|---|
reign_course_before_{id}, reign_course_after_{id} |
Before or after one section |
reign_course_hero_end, reign_course_card_end, reign_course_main_end |
End of the header, card or main column |
Each action receives $course_id and the adapter object.
Add, move or remove sections
Section titled “Add, move or remove sections”add_filter( 'reign_course_layout_sections', function ( $sections ) { unset( $sections['requirements'] ); // remove $sections['reviews']['priority'] = 15; // move reviews above the course content $sections['faq'] = array( // add 'area' => 'main', 'priority' => 45, 'label' => __( 'FAQ', 'my-plugin' ), 'callback' => function ( $adapter ) { echo do_shortcode( '[my_faq course="' . (int) $adapter->course_id . '"]' ); }, ); return $sections;} );A section has an area (hero, card or main), a priority, an optional label (the heading) and either a callback or an adapter method.
Change a value
Section titled “Change a value”Every value the layout reads goes through reign_course_{method}. The filter gets the value, the course ID and the adapter.
| Filter | Value |
|---|---|
reign_course_subtitle |
Short description HTML |
reign_course_rating |
array( 'average' => float, 'count' => int ) or null |
reign_course_instructors |
Instructor user IDs |
reign_course_meta |
Header facts: array( 'icon' => ..., 'label' => ... ) items |
reign_course_media_html, reign_course_price_html, reign_course_enroll_html, reign_course_progress_html |
Card HTML |
reign_course_includes |
“This course includes” items: array( 'icon', 'label', 'value' ) |
reign_course_learn_items, reign_course_requirements |
Lists of strings |
reign_course_curriculum_html, reign_course_content_html, reign_course_reviews_html, reign_course_notices_html |
Main column HTML |
// Add a line to "This course includes".add_filter( 'reign_course_includes', function ( $items ) { $items[] = array( 'icon' => 'clock', 'label' => __( 'Lifetime access', 'my-plugin' ), 'value' => '' ); return $items;} );The instructor box shows how many courses the instructor has published. For Tutor LMS it also shows the job title, rating and students. Add more facts with reign_course_instructor_facts. Examples are students or an average rating.
add_filter( 'reign_course_instructor_facts', function ( $facts, $user_id ) { $facts[] = array( 'icon' => 'users', 'label' => sprintf( '%d students', my_student_count( $user_id ) ) ); return $facts;}, 10, 2 );For LearnDash, the 8.0.8 filter reign_course_features_in_tab still changes the “This course includes” items. The course’s own feature list still replaces them when it is turned on. That list is in the Reign course meta box.
Change one section’s markup
Section titled “Change one section’s markup”The header byline and the card list, checklist, requirements and instructor sections are template parts in template-parts/lms/course/ (byline.php, includes.php, learn.php, requirements.php, instructor.php). Copy one into the same path in your child theme to change it. You can also create template-parts/lms/course/{id}.php for any other section ID; it then replaces that section’s output. The parts receive $args['adapter'].
Restyle
Section titled “Restyle”The page uses BEM classes (.reign-course__hero, .reign-course__card, .reign-course__section--{id}) and these custom properties on .reign-course:
| Property | Default |
|---|---|
--reign-course-card-width |
340px |
--reign-course-gap |
2.5rem |
--reign-course-radius |
8px |
--reign-course-hero-bg |
A dark shade of your theme colour |
--reign-course-hero-text |
white |
--reign-course-star |
Amber |
.reign-course { --reign-course-hero-bg: #1c1d1f;}Support another LMS
Section titled “Support another LMS”Register a class that extends Reign_Course_Adapter (inc/lms/class-reign-course-adapter.php). It needs post_type() and is_active(); every other method returns nothing by default, so you fill only what your LMS has.
add_action( 'after_setup_theme', function () { if ( ! class_exists( 'Reign_Course_Adapter' ) ) { return; } class My_LMS_Course_Adapter extends Reign_Course_Adapter { public function post_type() { return 'my_course'; } public function is_active() { return function_exists( 'my_lms_enroll_button' ); } public function enroll_html() { return my_lms_enroll_button( $this->course_id ); } public function curriculum_html() { return my_lms_curriculum( $this->course_id ); } } add_filter( 'reign_course_adapters', function ( $adapters ) { $adapters['my-lms'] = 'My_LMS_Course_Adapter'; return $adapters; } );}, 20 );The Course page layout setting appears for your post type automatically. Use setup() to stop your LMS from printing its own course template inside the description. Use before() and after() to fire your LMS’s own page hooks.

