Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable gradients? #18171

Closed
benhuson opened this issue Oct 29, 2019 · 1 comment
Closed

How to disable gradients? #18171

benhuson opened this issue Oct 29, 2019 · 1 comment

Comments

@benhuson
Copy link

With the custom colour palettes it is possible to disable them by disabling custom colours:

add_theme_support( 'disable-custom-colors' )

...then defining an empty custom palette:

add_theme_support( 'editor-color-palette', array() );

Is there a similar way to disable/hide the gradients palette? eg.

add_theme_support( 'editor-gradient-palette', array() );

@youknowriad
Copy link
Contributor

Thanks for the issue. Theme support for gradients is being worked on in #17774 and it will include the possibility to disable them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants