From 86c19ac3c56312e299253b57477fa4f3c7b460ed Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Thu, 30 May 2024 15:12:14 +0500 Subject: [PATCH] define gradient paragraph style --- functions.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 20fac48..e880ab0 100644 --- a/functions.php +++ b/functions.php @@ -45,6 +45,20 @@ function jett_block_styles() { line-height: 1.1; }' ) - ); + ); + register_block_style( + 'core/paragraph', + array( + 'name' => 'gradient', + 'label' => __( 'Gradient', 'jett' ), + 'inline_style' => ' + p.is-style-gradient { + background: var(--wp--preset--gradient--violet-to-green); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + line-height: 1.1; + }' + ) + ); } add_action( 'init', 'jett_block_styles' );