-
AuthorPosts
-
June 12, 2018 at 3:00 pm #971686
Hi,
I am having a problem with LifterLMS not displaying quiz questions. After reaching out to them for support they provided the following response…
“As far as your quizzes not working it looks as if a requirement of our quizzes (WP Media Elements) which is a WordPress core script is not being loaded on your site. As a result LifterLMS scripts that depend on this core script are not being loaded either and as a result of that your quizzes will not function…”
I have disabled all plugins, and that did not resolve issue. I switched to the wordpress twentyseventeen theme and the LMS works properly. So it makes sense that for some reason Enfold is blocking that script. It worked in the past, so I believe there has been a recent update in Enfold that has caused the new conflict.
URL, Username and PW for admin in private content
Thank you!
June 13, 2018 at 12:36 pm #972257Hey image2site,
Can you please ask the plugin developers which dependencies (js/css files) are missing if Enfold is used?
Best regards,
DudeJune 13, 2018 at 12:44 pm #972262Hi,
Ok I found the problem – I added this code to the functions.php file:function enqueue_av_quiz_assets() { wp_enqueue_script('av_quiz_assets', 'http://drnachonline.com/wp-content/plugins/lifterlms/assets/js/llms-quiz.min.js'); } add_action('wp_enqueue_scripts', 'enqueue_av_quiz_assets', 9999);and replaced:
avia_enqueue_script_conditionally( $condition , 'wp-mediaelement'); avia_enqueue_style_conditionally( $condition2 , 'wp-mediaelement'); //With WP 4.9 we need to load thewith
wp_enqueue_script( $condition , 'wp-mediaelement'); wp_enqueue_style( $condition2 , 'wp-mediaelement'); //With WP 4.9 we need to load theBest regards,
DudeJune 14, 2018 at 5:57 pm #972943Thank you Dude! Works perfect now.
June 14, 2018 at 6:05 pm #972945Hey!
Great – glad we could help you :)
Regards,
Peter -
AuthorPosts
- The topic ‘Wp Media Elements’ is closed to new replies.
