Using Divi theme with LifterLMS

Update 30/03/2017: An official solution is now available. For more information, see the Lifti section on the LifterLMS Blog or watch the overview of Lifti on YouTube.

When establishing an LMS with WordPress, LifterLMS is a solid LMS plugin, and Divi an excellent theme. But they don’t play together seamlessly out-of-the-box.

Specifically, you need to go to extra efforts to enable Divi builder and Divi settings for custom post types that come with LifterLMS: Course and Lesson.

But there is a solution!

The longcut

For all the instructions to do this yourself, see Nagdy’s post.

Pay to progress

Another good option, if you’re happy to pay a nominal fee is to use Divi Booster. This plugin allows you to enable Divi on custom post types without getting your hands dirty by touching the code below—I mean, eww, who knows where it’s been??

Free shortcut: My child theme

  1. Download this child theme
    Divi child theme – enables Divi on custom post types for LifterLMS
  2. Unzip it
  3. Tweak as necessary (should work out of the box)
  4. Upload to your WordPress instance
    Path to child theme
  5. Activate the child theme in your WordPress backend: Appearance > Themes

You can use this for any custom post types, just keep adding to the $post_types array at the top of the functions.php file.

function my_et_builder_post_types( $post_types ) {
    $post_types[] = 'course';
    $post_types[] = 'lesson';
    $post_types[] = 'another'; // Repeat this line and tweak
 
    return $post_types;
}
add_filter( 'et_builder_post_types', 'my_et_builder_post_types' );

Results

You should now see the Divi builder and Divi settings options appear when you edit those custom post types.

Divi examples in custom post

Let me know how you go!

Posted in

Leave a reply