Custom Divi Modules – Responsive Padding & Margin Fields

by | 22nd June 2020

PHP

Create the custom margin field to display in the Design > Spacing toggle:

Inside the render() function set up the margin/padding and responsive props:

Render the default/desktop, tablet & mobile CSS:

JSX

Sources

Not able to use Advanced margin_padding control multiple times ? · Issue #125 · elegantthemes/create-divi-extension (github.com)

0 Comments

Submit a Comment

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