New gradient theme APIs

WordPress 5.4 lets your theme use gradients as backgrounds in Cover and Buttons blocks, courtesy of some new theme APIs. You’ll notice they parallel the approaches of the colors and fonts API. Configure the predefined set of gradients Start by configuring a predefined set of gradients. Do that with the theme-support option editor-gradient-presets, then pass … Continue reading New gradient theme APIs