• I’m using the theme hueman, and have created a child theme to control some style elements, one of which is link colour in the body of my posts. I’m using the following code:

    <style>
    <!–
    .entry a:link {color: #1400ED; background-color: transparent; text-decoration: underline; }
    .entry a:visited {color: #C4B7F7; text-decoration: none; }
    .entry a:hover {color: #FA0000; text-decoration: underline; }
    .site-title a { display: block; color: #1400ED; max-width: 100%; }
    –>
    </style>

    The visited and hover elements work fine, but the basic unviewed link element won’t change, no matter what I do.

    Am I correct in thinking that this child theme should override all of the parent theme’s css for post links with when done this way? Or am I missing something in my parent theme css that could be interfering?

    Someone else suggested weighting my css with !important, but that didn’t work.

    https://www.paranormalpeopleonline.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can change the a{ } tag and that shall do the job! If it doesn’t work you can use !important; and that does the trick as well.

    Thread Starter Martin Clemens

    (@pyper900)

    As I said above, I’ve tried both of those options, neither worked.

    But I have found a workaround, even though it isn’t ideal.

    I tested on your site with just using a{ color: #666; } tag and it seems to work for me!

    Where are you entering the code?

    Thread Starter Martin Clemens

    (@pyper900)

    In a child theme stylesheet.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing link colour’ is closed to new replies.