sensei
sensei copied to clipboard
Divi does not recognize quizzes as post content; Theme Builder cannot be used with Quizzes
Steps to Reproduce
- Go to Divi -> Theme Builder
- Add a new template that applies to Lessons and Quizzes
- Include Post Title and Post Content blocks in the body of the template.
What I Expected
- Lessons and Quizzes use the template
What Happened Instead
Only Lesson content appears properly. Divi does not seem to recognize the title or content of Quiz blocks as content, so the page is blank.
PHP / WordPress / Sensei LMS version
WordPress Version 6.0.1, PHP 8, Sensei 4.5.2
Browser / OS version
Chrome Latest
Screenshot / Video
Created a Theme Builder block for all sensei content (Courses, Lessons, Quizzes)
Works as expected for courses.
No content shows for quizzes (but the title does appear to be included)

Context / Source
One of Divi's flagship features is the ability to set up these templates to style any kind of post just one, and avoid manually copy/pasting styles or otherwise editing things manually. Divi's builder is also (usually) more powerful/flexible than the block editor and predates full-site editing.
I don't know if this is it for sure, but it seems like Divi just isn't recognizing the Quiz block as "post content" the way it does for lesson/course content.
Quizzes that are "in line" in a Lesson do appear correctly when using the theme builder.
Hi @ianhyzy - I just had a look at this and I'm not able to reproduce.
Quizzes that are "in line" in a Lesson do appear correctly when using the theme builder.
In my tests the Quizzes are always on a separate page after you press "View Quiz" - how do you get your quizzes "inline"?
Here's a Quiz on a default Divi site:

Resolving due to inactivity. Please reopen if required.