Move gradients config to theme.json
[MAILPOET-5740]
This commit is contained in:
committed by
Jan Lysý
parent
c75f30ce4e
commit
3574e6b2ca
@ -77,12 +77,6 @@ class SettingsController {
|
|||||||
// Enabling alignWide allows full width for specific blocks such as columns, heading, image, etc.
|
// Enabling alignWide allows full width for specific blocks such as columns, heading, image, etc.
|
||||||
$settings['alignWide'] = true;
|
$settings['alignWide'] = true;
|
||||||
|
|
||||||
// Disable gradients. We cannot render them in emails.
|
|
||||||
$settings['disableCustomGradients'] = true;
|
|
||||||
$settings['__experimentalFeatures']['color']['customGradient'] = false;
|
|
||||||
$settings['__experimentalFeatures']['color']['defaultGradients'] = false;
|
|
||||||
$settings['__experimentalFeatures']['color']['gradients'] = [];
|
|
||||||
|
|
||||||
return $settings;
|
return $settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/theme.json",
|
"$schema": "https://schemas.wp.org/trunk/theme.json",
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"color": {
|
||||||
|
"customGradient": false,
|
||||||
|
"defaultGradients": false,
|
||||||
|
"gradients": []
|
||||||
|
},
|
||||||
"layout": {
|
"layout": {
|
||||||
"contentSize": "660px"
|
"contentSize": "660px"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user