Skip to content

Instantly share code, notes, and snippets.

@mkdizajn
Forked from ryanwelcher/theme.json
Created June 16, 2022 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkdizajn/0336f0676a47cc27a3a2841ce9d9683b to your computer and use it in GitHub Desktop.
Save mkdizajn/0336f0676a47cc27a3a2841ce9d9683b 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