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
- Download this child theme
Divi child theme – enables Divi on custom post types for LifterLMS - Unzip it
- Tweak as necessary (should work out of the box)
- Upload to your WordPress instance
- 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.
Let me know how you go!