Skip to content

Course Archive and Sidebars

On the course archive, the courses page, and course category pages, the addon restyles Sensei’s course loop into Reign-styled cards and adds theme sidebar support.

The addon rewires Sensei’s course loop so each card shows:

  • A thumbnail wrapper with the course featured image (or a no-thumbnail placeholder when none is set).
  • A review stars box with the average rating and review count - shown only when Review on course is enabled.
  • The course author avatar and name - shown only when Avatar on course is enabled and Sensei’s own “course author” display setting is on.
  • The course price - shown only when Price on course is enabled. Courses with an associated WooCommerce product (via Sensei WC Paid Courses) show the product price; courses without one show “Free”.

The course excerpt is trimmed to a short length. The word count can be adjusted with the reign_sensei_set_excerpt_length and reign_sensei_course_excerpt_length filters.

The course loop is forced to three columns on course archive pages and BuddyPress profile course listings. The column count can be changed with the reign_sensei_course_loop_column_number filter.

On the course archive, the Sensei courses page, and course category taxonomy archives, the addon renders the Reign theme sidebar according to the archive layout chosen for courses (reign_course_archive_layout, defaulting to a right sidebar):

  • Left sidebar appears for the left_sidebar and both_sidebar layouts.
  • Right sidebar appears for the right_sidebar and both_sidebar layouts.

The sidebar IDs can be filtered with reign_sidebar_id_for_left_sidebar.

The card review, avatar, and price options are toggled from the General tab. See Configuring settings. The archive layout (left, right, both, or no sidebar) is set in the Reign theme customizer for the course post type.