From 45d9eaaddba4f23c59b6dc7be1b628fe38715f97 Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Mon, 13 May 2024 16:36:25 +0500 Subject: [PATCH] add constrained paragraph style --- functions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functions.php b/functions.php index ba904eb..aaf7a53 100644 --- a/functions.php +++ b/functions.php @@ -29,4 +29,14 @@ function lex_scotland_block_styles() { } ' ) ); + + register_block_style( 'core/paragraph', array( + 'name' => 'constrained', + 'label' => __( 'Constrained', 'lex-scotland' ), + 'inline_style' => ' + p.is-style-constrained { + max-width: 50ch; + } + ' + ) ); } \ No newline at end of file