• Resolved Perlkonig

    (@perlkonig)


    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

    (@dithemes)

    Hi @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/

    Thanks

    Thread Starter Perlkonig

    (@perlkonig)

    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

    (@dithemes)

    Hi @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

    (@perlkonig)

    Thanks!

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

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