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!
Hey image2site,
Can you please ask the plugin developers which dependencies (js/css files) are missing if Enfold is used?
Best regards,
Dude
Hi,
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 the
with
wp_enqueue_script( $condition , 'wp-mediaelement');
wp_enqueue_style( $condition2 , 'wp-mediaelement'); //With WP 4.9 we need to load the
Best regards,
Dude
Thank you Dude! Works perfect now.
Hey!
Great – glad we could help you :)
Regards,
Peter