• LifterLMS has had a lot of enhancements in the past year and Kadence has just not kept up. I’m having to override a lot of styling and broken templates. Is there an easy way to disable all LifterLMS integration? I don’t want Kadence’s templates, I just want to use the ones included by LifterLMS.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi David,

    I’m glad you reached out. I’ll be happy to help!

    Currently, there isn’t a “switch” that will turn on/off LifterLMS functionality in Kadence. With the help of a couple of code snippets, you can remove the Kadence stylesheet and template overrides. If you’re not familiar with adding custom PHP snippets, please see this document.

    This first snippet will remove the Kadence LifterLMS stylesheet.

    function remove_kadence_lifterlms_stylesheet(){
    wp_dequeue_style('kadence-lifterlms');
    }
    add_action( 'wp_print_styles', 'remove_kadence_lifterlms_stylesheet' );

    For Kadence templates, the theme only has two overrides (lesson-preview.php and syllabus.php). The following snippet will remove all Kadence LifterLMS templates and set them to the plugin default.

    function remove_kadence_lifterlms_templates( $template, $template_name, $template_path ){
    if ( strpos($template, 'kadence') ){
    $default_path = llms()->plugin_path() . '/templates/';
    $template = $default_path . $template_name;
    if ( !file_exists($template) ){
    $template = '';
    }
    }
    return $template;
    }
    add_filter( 'lifterlms_locate_template', 'remove_kadence_lifterlms_templates', 10, 3);

    Give that a try and let me know if that helps. I’ll be glad to look into any other issues you may be experiencing.

    Thanks!
    Anthony

    aapc

    (@aapc)

    Hi @blogjunkie

    Just checking in on this issue. Do you still need assistance here?

    If you’re all set, please go ahead and resolve this ticket. Otherwise, let us know if you need anything further.

    Thanks!
    Anthony

    Hi @blogjunkie

    We haven’t heard back from you so we’ll assume this topic is resolved.

    Please mark this issue as resolved when you have a moment and don’t hesitate to reach out to us again if you need more assistance.

    Have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disable integration with LifterLMS’ is closed to new replies.