Automattic / sensei

Sensei LMS - Online Courses, Quizzes, & Learning
https://senseilms.com
GNU General Public License v2.0
539 stars 198 forks source link

Learning mode and DIVI incompatibility error #6972

Open amroland opened 1 year ago

amroland commented 1 year ago

If the template is DIVI and Learner mode is on, some plugin blocks will not appear in lessons (e.g. WP Vimeo Upload block of Video Uploads for Vimeo PRO plugin).

This CSS is causing the issue: woothemes-sensei/plugins/sensei-lms/assets/dist/css/3rd-party/themes/divi/learning-mode.css?ver=2566383cb64eabe0d127

.wp-block-post-content * { padding-bottom: 0; }

This sets the padding-bottom to 0, which means that the given block element is not visible.

Screenshot / Video

padding-bottom prevents showing video player element: Képernyőfotó 2023-06-14 - 11 51 50

If you disable padding-bottom video player is visible: Képernyőfotó 2023-06-14 - 11 52 05

PHP / WordPress / Sensei LMS version

Sensei LMS Version: 4.15.0 | Sensei Pro Version: 1.15.0 DIVI 4.21.0 WordPress 6.2.2

donnapep commented 1 year ago

@amroland Thanks for the report! Just curious if you noticed this happening with any other block? Video Uploads for Vimeo PRO appears to be a premium plugin.

amroland commented 1 year ago

@donnapep I didn't notice it with any other block. I notified the developer of the other plugin about this as well.