When creating a custom Divi module, this snippet will make the custom module available within the full-width section menu.
When you’re extending the ET_Builder_Module
, you’re able to make the custom module available under the full-width options so existing full-width styles will already apply within the init function.
Full-width Code Snippet:
public function init() {
$this->name = esc_html__( 'Heroine', 'my-text-domain' );
$this->fullwidth = true;
}
Additional Reading:
- Divi.Space: Adding Custom Modules to Divi
- DiviPlugins GitHub: Custom Module for Divi Builder