Divi: Full-Width Section Custom Module

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;

Heroine custom module option showing within full-width section options

Heroine custom module option selected within full-width section

Additional Reading:

Leave a Reply

Your email address will not be published. Required fields are marked *