From 55fdf97225a0e40ec6d42d688ad0b15e34814b1e Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Wed, 5 Jun 2024 18:05:47 +0500 Subject: [PATCH] add arrow link style --- functions.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/functions.php b/functions.php index 0c194cc..1493783 100644 --- a/functions.php +++ b/functions.php @@ -30,6 +30,19 @@ function lex_scotland_block_styles() { ' ) ); + register_block_style( 'core/paragraph', array( + 'name' => 'arrow-link', + 'label' => __( 'Arrow link', 'lex-scotland' ), + 'inline_style' => ' + p.is-style-arrow-link a:after { + display: inline-block; + content: "🡭"; + padding-inline-start: 0.25rem; + vertical-align: middle; + } + ' + ) ); + register_block_style( 'core/paragraph', array( 'name' => 'constrained', 'label' => __( 'Constrained', 'lex-scotland' ),