Last active
March 7, 2023 16:08
-
-
Save dieppon/93bf355eb8ffaa675bb8280a28d8303a to your computer and use it in GitHub Desktop.
Removes !important rile from css created with php.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/includes/utilities.php b/includes/utilities.php | |
index 1ac6715..cd410f9 100644 | |
--- a/includes/utilities.php | |
+++ b/includes/utilities.php | |
@@ -18,11 +18,11 @@ class ANCR_Utilities{ | |
} | |
if( !empty( $font_color ) ){ | |
- $properties[ 'color' ] = $font_color . ' !important'; | |
+ $properties[ 'color' ] = $font_color; | |
} | |
if( !empty( $font_size ) ){ | |
- $properties[ 'font-size' ] = "{$font_size}px !important"; | |
+ $properties[ 'font-size' ] = "{$font_size}px"; | |
} | |
if( isset( $border_width ) && $border_width > 0 ){ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment