From 7cadef94a6e404ab951d2dcaa0b3366a6fd6a3be Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Fri, 31 May 2024 15:23:06 +0500 Subject: [PATCH] add arrow list style --- functions.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/functions.php b/functions.php index 9cba82d..05d1f50 100644 --- a/functions.php +++ b/functions.php @@ -84,5 +84,22 @@ function jett_block_styles() { }' ) ); + register_block_style( 'core/list', array( + 'name' => 'arrow', + 'label' => __( 'Arrow', 'lex-scotland' ), + 'inline_style' => ' + ul.is-style-arrow { + list-style: none; + } + ul.is-style-arrow div { + display: inline; + } + ul.is-style-arrow li::before { + content: "→"; + margin-right: 0.5em; + font-weight: bold; + } + ' + ) ); } add_action( 'init', 'jett_block_styles' );