Skip to content

Instantly share code, notes, and snippets.

@dieppon
Last active March 7, 2023 16:08
Show Gist options
  • Save dieppon/93bf355eb8ffaa675bb8280a28d8303a to your computer and use it in GitHub Desktop.
Save dieppon/93bf355eb8ffaa675bb8280a28d8303a to your computer and use it in GitHub Desktop.
Removes !important rile from css created with php.
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