Skip to content

Instantly share code, notes, and snippets.

@ryanwelcher
Created February 8, 2022 17:30
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ryanwelcher/25ad8704b03233d7696425bf7559ec0f to your computer and use it in GitHub Desktop.
Save ryanwelcher/25ad8704b03233d7696425bf7559ec0f to your computer and use it in GitHub Desktop.
When adding theme.json to an existing Classic Theme, these settings will stop the default color and typography controls from being enabled.
{
"$schema": "http://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"layout": {
"contentSize": "750px"
},
"color": {
"background": false,
"custom": false,
"customDuotone": false,
"customGradient": false,
"defaultGradients": false,
"defaultPalette": false,
"text": false
},
"typography": {
"customFontSize": false,
"dropCap": false,
"fontStyle": false,
"fontWeight": false,
"letterSpacing": false,
"lineHeight": false,
"textDecoration": false,
"textTransform": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment