Skip to content

Course Cover Image

The single course header in the Udemy-style layout uses a cover image and an optional background color. You can set these per course, and set a site-wide default for courses that have none.

On the course editor, the addon adds a Course Cover Image box in the side column. It provides:

  • Cover image - click Set cover image to choose an image from the media library. Click Remove listing image to clear it. Stored as the _course_cover_image_id meta.
  • Background color - a color picker used as the header background, stored as the _course_cover_background_color meta.

The cover image appears only in the Udemy-style single course layout. Saving is protected by a nonce and requires the ability to edit posts; the image ID is validated to be a real media library image before it is stored.

For courses that have no cover image of their own, the single course header falls back to the Default Single Course Cover Image set on the General tab (default_course_img_url). If no default is set, a bundled placeholder image is used.

Set the default from the Reign theme options page: Sensei LMS > General > Default Single Course Cover Image, using the Upload Image button. See Configuring settings.

When rendering the single course header, the cover image is chosen in this order:

  1. The course’s own cover image (_course_cover_image_id), if set and valid.
  2. The site-wide default cover image (default_course_img_url), if set.
  3. The bundled placeholder image.

A per-course background color, if set, is applied on top of whichever image is used.