• My website is http://www.FitFacts.net

    For the life of me, I cannot figure out how to change my annoying orange and gray link color on my theme. I want them black, or something else but not as they are. I have edited the style.css, and changed the a:link a:visited and a:hover as I was told (I changed all of these colors to black), but nothing happened. Can someone please help me change my links to black? Thank you! Below is a copy of my stylesheet, sorry for the extra spaces.

    [CSS code moderated – the link to your site is enough to access the styles – please read the forum guidelines for posting code]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Posting all that code is really annoying and against the forum rules. It’s also entirely unnecessary as your style sheet is publicly available for all to see.

    Here’s one of the rules you need to override:

    .blockcontent-body a:link {
      color: #B24801;
      text-decoration: none;
    }

    Here’s another:

    .postheadericons a:link {
      color: #983D01;
      text-decoration: none;
    }

    And another:

    .postfootericons a:link {
      color: #983D01;
      text-decoration: none;
    }

    There may be more.

    Just use Firebug to find the selectors you need.

    HTH

    PAE

    Thread Starter fitfacts

    (@fitfacts)

    Sorry. I changed EVERY instance in the stylesheet that has “a:link” in it to black #000000 and it still shows my links as orange, and visited as gray. Any other ideas? I appreciate anyone’s help.

    The first style rule I show above is in this style sheet:

    http://www.fitfacts.net/wp-content/w3tc/min/99ce8a98.bf2ded.css

    As are at least some of the others.

    Are you looking in the right place?

    If I remember rightly, w3tc is some sort of site accelerator. Maybe you need to disable this whilst you change your styles and then put it back. I’m wondering if it grabs the styles when it’s installed and then has no mechanism for updating them when you make any changes. The documentation might tell you.

    Firebug shows you where the style rules are being read from.

    Cheers

    PAE

    Thread Starter fitfacts

    (@fitfacts)

    You hit the nail on the head! I deactivated that plugin, changed the styles, and it worked. Thank you SO much. I can’t tell you how long I have spent trying to fix this myself. 🙂

    De nada

    PAE

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

The topic ‘Cannot change link color in theme’ is closed to new replies.