From 4d166259b225e5096094049f9896c460e5c72804 Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Mon, 13 May 2024 18:58:30 +0500 Subject: [PATCH] prevent max-width being overridden by wordpress css for constrained style --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index e09f569..0be4eb9 100644 --- a/functions.php +++ b/functions.php @@ -35,7 +35,7 @@ function lex_scotland_block_styles() { 'label' => __( 'Constrained', 'lex-scotland' ), 'inline_style' => ' p.is-style-constrained { - max-width: 50ch; + max-width: 50ch !important; } ' ) ); @@ -45,7 +45,7 @@ function lex_scotland_block_styles() { 'label' => __( 'Constrained', 'lex-scotland' ), 'inline_style' => ' li.is-style-constrained { - max-width: 50ch; + max-width: 50ch !important; } ' ) );