WordPress.org

Support

Support » Themes and Templates » Custom CSS Not Working

Custom CSS Not Working

  • Hello,

    Having a bit of trouble customizing the tagline font color on my site. I pasted in the following code to the custom css tool in Customizr and nothing changes. Any idea what I’m doing wrong? Thanks!

    Site is insuremytoy.unchainedseo.com

    h2 {
    color:#FF0000;
    float:right;
    font-style:italic;
    line-height:19px;
    padding-right:5px;
    text-align:right;

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator stephencottontail

    @stephencottontail

    You need a closing bracket: “}”. Also, I looked at the lines before that and you need a closing bracket there too. It should be:

    h1, h2, h3, h4, h5, h6 {
      color:#FF0000;
      font-family:inherit;
      font-weight:bold;
      line-height:20px;
      margin:10px 0;
      text-shadow:white 0 1px 0;
    }
     h2 {
      color:#FF0000;
      float:right;
      font-style:italic;
      line-height:19px;
      padding-right:5px;
      text-align:right;
    }

    Thanks! That helps. Still having a bit of trouble though. I initially had the wrong code and discovered that below is the correct code to change the font color where I want. However, the font color will only change when I have the customizr menu drop downs open. When I save the updated code and visit the site, nothing has actually changed?

    h2.site-description {
    color:#FF0000;
    font-size:18px;
    font-style:italic;
    line-height:20px;
    padding-top:0;
    }

    I should mention that I did clear my cache. On Mac OSX 10.9 and using Chrome.

    OK, the selector you need is:

    .navbar-wrapper .navbar h2 {
    color:#FF0000;
    font-size:18px;
    font-style:italic;
    line-height:20px;
    padding-top:0;
    }

    That’s brilliant thank you. So I just needed that selector.

    Here’s a CSS Glossary which might help you next time.

    esmi

    @esmi

    Forum Moderator

    Done.

    @csingerline: Stop posting in other people’s topics. Stick to your own topic.

    Again many thanks! I have the glossary book marked so I’ll make sure to use it next time! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom CSS Not Working’ is closed to new replies.