Title: !important in CSS
Last modified: March 17, 2018

---

# !important in CSS

 *  Resolved [Perlkonig](https://wordpress.org/support/users/perlkonig/)
 * (@perlkonig)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/important-in-css/)
 * I really like your theme. I’m even interested in buying your theme, but I can’t
   as long as the main CSS is peppered with “!important”. My primary issue at the
   moment is the tag cloud. I want to reset it to plain text at different sizes,
   but I can’t because your font size declaration is set as “!important”. So the
   only way I can use your theme is if I edit it every time I update it. I’m not
   going to pay for that. Please rework your CSS so that there are no more “!important”
   s in the main file.
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Theme Author [Di Themes](https://wordpress.org/support/users/dithemes/)
 * (@dithemes)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/important-in-css/#post-10085520)
 * Hi [@perlkonig](https://wordpress.org/support/users/perlkonig/)
 * Your modification will not remove, if you will use child theme, please use child
   theme: [https://developer.wordpress.org/themes/advanced-topics/child-themes/](https://developer.wordpress.org/themes/advanced-topics/child-themes/)
 * Thanks
 *  Thread Starter [Perlkonig](https://wordpress.org/support/users/perlkonig/)
 * (@perlkonig)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/important-in-css/#post-10085613)
 * One of us is misunderstanding how “!important” works. In a child theme I can 
   unset or override most things, but with font-size set as !important, there’s 
   nothing I can do.
 *  Theme Author [Di Themes](https://wordpress.org/support/users/dithemes/)
 * (@dithemes)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/important-in-css/#post-10085753)
 * Hi [@perlkonig](https://wordpress.org/support/users/perlkonig/)
 * We have fixed this issue and will available in next update.
 * For now, please remove font-size line in file: \wp-content\themes\di-blog\assets\
   css\style.css Line 1015
 * and you can add filter:
 *     ```
       // Tag cloud css font size fix.
       add_filter( 'widget_tag_cloud_args', 'di_blog_tag_cloud_fontsize_fix', 10, 1 );
       function di_blog_tag_cloud_fontsize_fix( $args ) {
       	$args['largest']  = 11;
       	$args['smallest'] = 11;
       	$args['unit']     = 'px';
       	return $args;
       }
       ```
   
 * Now you will be able to modify it easily.
 * Thank you very much for reporting this issue
 *  Thread Starter [Perlkonig](https://wordpress.org/support/users/perlkonig/)
 * (@perlkonig)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/important-in-css/#post-10086693)
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘!important in CSS’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/di-blog/2.2/screenshot.png)
 * Di Blog
 * [Support Threads](https://wordpress.org/support/theme/di-blog/)
 * [Active Topics](https://wordpress.org/support/theme/di-blog/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/di-blog/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/di-blog/reviews/)

## Tags

 * [!important](https://wordpress.org/support/topic-tag/important/)
 * [css](https://wordpress.org/support/topic-tag/css/)

 * 4 replies
 * 2 participants
 * Last reply from: [Perlkonig](https://wordpress.org/support/users/perlkonig/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/important-in-css/#post-10086693)
 * Status: resolved