Amends the Sensei single lesson template to match the designs.
These templates for Sensei Learning Mode appear to be dynamically created, and don't seem to be able to be overridden in the normal fashion, so they've been copied into the theme as patterns. A single_template_hierarchy filter is then used to inject our single lesson template instead of the Sensei one, and it then loads the patterns. I did try adding templates/single-lesson.html and templates/lesson.html and the php equivalents, but the Sensei plugin template was always loaded.
Closes #2429
Amends the Sensei single lesson template to match the designs.
These templates for Sensei Learning Mode appear to be dynamically created, and don't seem to be able to be overridden in the normal fashion, so they've been copied into the theme as patterns. A
single_template_hierarchy
filter is then used to inject our single lesson template instead of the Sensei one, and it then loads the patterns. I did try addingtemplates/single-lesson.html
andtemplates/lesson.html
and the php equivalents, but the Sensei plugin template was always loaded.Screenshots
Lesson
Lesson Quiz
Screenshots