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

Let theme register backgrounds and background images? #14

Open
strarsis opened this issue Nov 30, 2019 · 6 comments
Open

Let theme register backgrounds and background images? #14

strarsis opened this issue Nov 30, 2019 · 6 comments
Assignees

Comments

@strarsis
Copy link

Like with add_theme_support( 'editor-color-palette',, themes should be able to register their own gradients and images for background, too.
And what about complex backgrounds that use wrappers and pseudo-elements?

@strarsis
Copy link
Author

Apparently this is already in the core and can be set up by theme:
https://developer.wordpress.org/block-editor/developers/themes/theme-support/#block-gradient-presets

@ajitbohra
Copy link
Member

ajitbohra commented Jan 2, 2020

Yes, this is on the list along with few more updates which are planned for release by end of the month.

@strarsis
Copy link
Author

@ajitbohra: Related: WordPress/gutenberg#16662
Apparently, many blocks still don't support gradient backgrounds.

@ajitbohra
Copy link
Member

We are working on an update to add the Native gradient picker.

@strarsis
Copy link
Author

strarsis commented Apr 7, 2020

@ajitbohra: This PR in core seems to be similar: WordPress/gutenberg#21375

@ajitbohra
Copy link
Member

The core is introducing a new hook to add support for colors to block via block support currently its experimental. We are planning to use it in the future.

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

3 participants