sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Divi does not recognize quizzes as post content; Theme Builder cannot be used with Quizzes

Open ianhyzy opened this issue 3 years ago • 1 comments

Steps to Reproduce

  1. Go to Divi -> Theme Builder
  2. Add a new template that applies to Lessons and Quizzes
  3. Include Post Title and Post Content blocks in the body of the template.

What I Expected

  1. 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) image Works as expected for courses. image No content shows for quizzes (but the title does appear to be included) image

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.

ianhyzy avatar Jul 18 '22 22:07 ianhyzy

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: Screen Shot 2022-08-05 at 2 16 06 PM

mikeyarce avatar Aug 05 '22 21:08 mikeyarce

Resolving due to inactivity. Please reopen if required.

gikaragia avatar Dec 07 '22 12:12 gikaragia