define gradient paragraph style

This commit is contained in:
Aadil Ayub 2024-05-30 15:12:14 +05:00
parent 72af3dd022
commit 86c19ac3c5

View File

@ -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' );