Changing Color of Visited Category Link

  • Hi. I love my unvisited category link color, which is a shade of blue. However, once it is visited it turns red.

    See the category “humor” here:
    http://hopefullyknown.com/2013/10/15/because-this-is-40/

    Nothing I’m trying for the category tag is working. Here’s variations I’ve tried in the CSS:


    .category-links visited {color: #0099cc;}

    .category-links a:visited {color: #0099cc;}

    It doesn’t seem to like either of them, so I know I’ve got it wrong. Help, please … Many, many thanks!

    The blog I need help with is: (visible only to logged in users)

  • Hi, since I’m not sure whether you mean the category links inside your post (under the title), or the links on the sidebar, here’s the CSS for both. Pick what you want:

    // For cat links in posts
    .entry-meta .cat-links a:visited {
        color: #0099cc;
    }
    // For cat links on sidebar
    .widget_categories .cat-item a:visited {
        color: #0099cc;
    }
  • Thank you so much! Worked like a charm.

  • The topic ‘Changing Color of Visited Category Link’ is closed to new replies.