-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add theme support option to disable gradient picker #18213
Comments
It looks like this was added as an experimental feature only very recently: @jorgefilipecosta Any further info the reporter should be aware of for this issue? |
Hi @markhowellsmead, as @talldan referred this feature is now available in an experimental state.
|
Great! Thanks @jorgefilipecosta! |
For anyone wondering why the above snippet no longer works. It's been changed to:
Not sure when that happened, but removing the |
Hi @Ahrengot, thank you for sharing the new code, since the original discussion the APIs were stabilized and now the experimental prefix should not be used. |
These don't seem to work with the latest plugin. Functions as expected when plugin is disabled. |
Want this too and just tried this, but doesn't seem to be working here - with or without the current Gutenberg (13.3.0) plugin. A little disconcerting if this isn't just user error on my part but is instead just something else that's now defunct. |
This option is now best controlled using the theme.json file. https://fullsiteediting.com/lessons/theme-json-color-options/#h-how-to-disable-gradients |
I don't particularly want to convert my sites to using theme.json just to disable gradients, especially when the option was already previously there. |
Then I'd suggest opening a new ticket to address the fact that the following theme support definitions don't work for you. (This ticket has been closed since December 2019.)
|
@EmSixTeen did you open a new ticket? which? Apart from disbabling gradients not working for me without theme.json I noticed disabled colors are still delivered as CSS variables inline in HTML wp-head |
In the same way that there is an option
add_theme_support('disable-custom-colors');
.The text was updated successfully, but these errors were encountered: