Learn about creating responsive breakpoints in your themes configuration settings.
dnd_section
, dnd_column
, and dnd_row
support margin and padding across breakpoints.dnd_area
support margin, padding, and visibility.dnd_area
support only margin and padding.dnd_area
support visibility.dnd_area
don’t support breakpoint based customizations.mobile
and default
(optional for desktop).
responsive_breakpoints
object to your themes.json
file. Inside of this object is a set of key/value pairs that will contain information about your breakpoint.
responsive_breakpoints
:
Key | Type | Description |
---|---|---|
name | String | The name of the breakpoint. At this time only "mobile" is available for use. |
mediaQuery | String | A media query string for the renderer/editors to use when generating responsive CSS. e.g. "@media (max-width: 767px)" |
previewWidth | Key/Value Pair | To give clues to the editor as to what size we should show our preview iframe at.e.g. {"value": 520} |
dnd_section
, dnd_row
, and dnd_column
tags.
Take the following example of a dnd_section:
default
(desktop view) and mobile
breakpoints as illustrated below.