Changing Color of Visited Category Link

  • Author
    Posts
  • #1640362

    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 hopefullyknown.com.

    #1640456

    hfzrhmn
    Member

    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;
    }

    #1640518

    Thank you so much! Worked like a charm.

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