Need help in the process of creating your own WordPress theme?
margin-dev option type.
| Name | Type | Default | Description |
|---|---|---|---|
| units | "px", "%" [] |
["px", "%"] |
Specify desired units for margin. |
| edges | "all", "vertical", "horizontal" |
all |
Specify what margin edges should be editable |
| Name | Type | Default | Description |
|---|---|---|---|
| type | "grouped", "ungrouped" |
"grouped" |
Margin type. |
| value | number |
0 |
Grouped value. |
| unit | "px", "%" |
"px" |
Grouped unit. |
| top | number |
0 |
Top value. |
| topUnit | "px", "%" |
"px" |
Top unit. |
| right | number |
0 |
Right value. |
| rightUnit | "px", "%" |
"px" |
Right unit. |
| bottom | number |
0 |
Bottom value. |
| bottomUnit | "px", "%" |
"px" |
Bottom unit. |
| left | number |
0 |
Left value. |
| leftUnit | "px", "%" |
"px" |
Left unit. |
{
id: "margin",
type: "margin-dev"
}
{
id: "margin",
type: "margin-dev",
config: {
units: ["px"],
edges: "vertical",
},
defaultValue: {
type: "ungrouped",
top: 5,
topUnit: "px",
right: 1,
rightUnit: "%",
bottom: 5,
bottomUnit: "px",
left: 1,
leftUnit: "%",
}
}