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

XF 1.4 Threads color

#1
Hello Everyone.
Am new in Xenforo and am not so familiar with the software.

Id like to have the first and the third thread one color and the second and forth thread different color:



Also id like to make this on the thread inside:



THANK YOU!!!
 
#3
Thank you! I have changed the posts but cant find for threads.

I have tried this but wont work:

.thread:nth-child(even) {
background-color: #F7F7F7;
}
 

Brogan

XenForo moderator
Staff member
#5
The class you would need to use is discussionListItem .

I doubt it is possible for threads though as they aren't in sequential order so won't be odd-even-odd.
 
#6
Thank you Brogan for the answer.

I have added this:
.discussionListItem
{
background-color:#141414;
}

WONT WORK :(
 
Last edited:

TJA

Well-known member
#10
And if you want the stats column to follow suite add this to EXTRA.css

Code:
.discussionListItem .stats {
background: none !important;
}
upload_2014-11-17_12-36-24.png
 

TJA

Well-known member
#11
If you are using a custom style you may need to add !important

.discussionListItem:nth-child(odd) {
background-color: #f0f7fc !important;
}
 
#12
Thejackarmy posted the right solution thank you!

If someone have added another color for the threed the color of the sticky will change also.... So you have to add this so you can have different color for the sticky:

.sticky:nth-child(even) {
background-color: #FCFFDA !important;
border: 1px solid #F39D00 !important;
}