• Hello

    There are some font-sizes, -colors, etc. I want to change on my site but I’m unable to do so.

    The !important tag doesn’t help either. I’ve noticed that it doesn’t make any difference anywhere on the my site.

    Has WP somehow disabled the tag or something?

    I’m using the Twenty Eleven child theme.

    My site: https://geimaku.com

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The !important CSS rule works just fine in WordPress as it doesn’t handle CSS any differently than (say) a static site. My guess is that you just aren’t using the right selectors in your child theme.

    No,the important tag works fine. I just used Firebug to change some basic font stuff on your page and no problem at all. There must be another problem with the site or what you are changing.
    Check the stylesheet set-up and try using Firebug to help you identify which code to change.

    A Quick look at the child themes style.css

    This has a double closing brace } margin-top:-32px;}

    #access {
    	background:#464646; /* Show a solid color for older browsers */
    	clear: both;
    	display: block;
    	float: left;
    	margin: 0 auto 6px;
    	width: 100%;
    	margin-top:-32px;}
    }
    #access ul {
    	font-size: 50px !important;
    	font-color:red
    	list-style: none;
    	margin: 0 0 0 -0.8125em;
    	padding-left: 0;
    }

    Look at the font-color:red it is missing the closing ;

    So the stylesheet is broken!

    If it helps you only need to have the changed lines in your child themes style.css!

    E.G:

    #access ul {
    	font-size: 50px !important;
    	font-color:red;
    }

    HTH

    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘!important tag doesn't work with WP?’ is closed to new replies.