Skip to content

Single Course Layout

Reign Sensei Addon replaces Sensei’s default single course page with a marketplace-style layout. When a visitor opens a single course, the addon takes over the template and renders a cover header, a tabbed body, and a course features sidebar.

The header is drawn by the addon at the top of the page and includes:

  • Cover image - the course’s own cover image if one is set (the _course_cover_image_id meta from the course metabox), otherwise the default cover image from settings, otherwise a bundled placeholder.
  • Cover background color - an optional solid color from the course metabox (_course_cover_background_color).
  • Breadcrumb - shown when the Reign breadcrumb site option is enabled.
  • Title and excerpt of the course.
  • Rating box - shown only when Review on course is enabled. It renders the average rating stars and the review count.
  • Teacher avatars and names - shown only when Avatar on course is enabled.
  • Last updated date - shown only when Last update on single course is enabled.

Below the header the content is split into tabs, switched with a ?tab= query parameter on the course URL:

  • Description - the default tab, showing the course content.
  • Teacher - the course teacher and any co-teachers (users with the sensei_coteaching meta for the course), each with avatar, name, role label, and an email link when an address is on file.
  • Review - the course reviews and the review form. This tab appears only when Review on course is enabled. See Course Reviews.

A right-hand widget area lists the course at a glance:

  • Lessons - the course lesson count.
  • Quizzes - the number of lessons in the course that have quiz questions.
  • Students - the enrolled user count.
  • Certificate - Yes or No, based on whether a certificate template is set on the course (_course_certificate_template meta, provided by the Sensei Certificates extension).

The features list can be modified with the learnmate_modify_course_features_in_tab filter.

  • The default cover image, review box, teacher avatar, and last-updated line are toggled from the General tab. See Configuring settings.
  • The per-course cover image and background color are set on the course editor. See Course cover image.
  • The layout template can be overridden from your theme. See Templates.