• 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?

#1
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?
 

Brogan

XenForo moderator
Staff member
#5
It didn't appear to change the text color, just the table.
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
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.
 

Brogan

XenForo moderator
Staff member
#7
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.