screenshot

If your custom module disappears after publishing the page then you are on right place.I spend almost 3-4 hours to debug this error but and found there is simple fix for this.

The solution is to prefix the custom module slug with et_pb_

Let us suppose you are building custom module for accordion then I choose initialize this module with slug as et_pb_custom_accordion.

Here is the example of one.

class Accordion_custom_module extends ET_Builder_Module {
function init() {
$this->name = esc_html__( ‘Custom Accordion’, ‘divi-awesome-layouts’ );
$this->slug = ‘et_pb_et_pb_custom_accordion’;
$this->fb_support = true;

//statement goes here
}
}

Hope this will be helpful to anyone who is building divi module for their projects.

You can place your comments or ideas here or you can send me at adhsushil7@gmail.com

Advertisements