single-post.html

What does settings.color.custom do?

Question: Does settings.color.custom false disable colour controls?

Answer: It doesn’t disable the color palette but does prevent the user from choosing a custom color.

Remember: Don’t use comments in your theme.json file. Validate it using JSON lint.{
    "version": 1,
    "settings": {
        "color": {
            "custom": false
        },
        "blocks": {
            "core/paragraph": {
                "color": {
                    "custom": true
                }
            }
        }
    }
}

Heading doesn’t allow custom color

Paragraph does

References

Global stylestheme.json

WordPress version: 5.7.2

Gutenberg version: 10.8.0

© Copyright Herb Miller, Bobbing Wide 2021