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

Custom gradient presets are not visible #18163

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

Custom gradient presets are not visible #18163

CreativeDive opened this issue Oct 29, 2019 · 1 comment

Comments

@CreativeDive
Copy link
Contributor

Hey,

I've added custom gradient presets by the theme (working with Gutenberg 6.8 RC1), but no preset gradients are visible in the block editor. Should that be possible now?

I've added this like:

add_theme_support( 'editor-gradient-presets', array(
			array(
				'name' => __( 'Warm Flame', 'text-domain' ),
				'gradient' => 'linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%)',
			),
			array(
				'name' => __( 'Night Fade', 'text-domain' ),
				'gradient' => 'linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%)',
			),
			array(
				'name' => __( 'Juicy Peach', 'text-domain' ),
				'gradient' => 'linear-gradient(to right, #ffecd2 0%, #fcb69f 100%)',
			),
		) );
@youknowriad
Copy link
Contributor

Thanks for the issue. Theme support for gradients is being worked on in #17774

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