1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changing the color of a sticky thread?

Discussion in 'Troubleshooting and Problems' started by nemesis, Apr 1, 2011.

  1. nemesis

    nemesis Member

    I'm trying to change the color of stickied threads in the thread listing in a forum. I am using the Blackened-Red theme and can't seem to figure out how to change this. In EXTRA.CSS I added:

    .discussionListItem.sticky
    {
    color: #FFFF00;
    }

    though it only seems to change the views/replies statistic to yellow and nothing else. What am I doing wrong?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. nemesis

    nemesis Member

    There's a few threads on this topic - I must have missed yours. Thanks a bunch.
     
  4. nemesis

    nemesis Member

  5. Brogan

    Brogan XenForo Moderator Staff Member

    My apologies, I overlooked the fact that it was the text color you were trying to change.
    Try this:
    Code:
    .discussionListItem.visible.sticky .title a:link,
    .discussionListItem.visible.sticky .title a:visited {
    color: #CC0000;
    }
    Change the #CC0000 to suit.
     
  6. nemesis

    nemesis Member

    That worked perfectly. How about for the Last Message text, would that be .discussionListItem.visibile.sticky .lastPost? I'm not much of a CSS coder, is there an easy to find that info out? Is it documented anywhere?

    Thanks.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Code:
    .discussionListItem.visible.sticky .lastPostInfo .username {
    color: #CC0000;
    }
    The only way to check this stuff is to either use something like Firebug for Firefox or check the templates directly.
     

Share This Page