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

Change Forum Thread color

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> EXTRA.css

Add this code to change the link colors of forum titles:

Code:
.nodeTitle a,
.nodeTitle a:visited
{
	color: red !important;
}
And forum thread titles:

Code:
.discussionList .discussionListItem .title a
{
	color: red !important;
}
 
#3
Admin CP -> Appearance -> Templates -> EXTRA.css

Add this code to change the link colors of forum titles:

Code:
.nodeTitle a,
.nodeTitle a:visited
{
color: red !important;
}
And forum thread titles:

Code:
.discussionList .discussionListItem .title a
{
color: red !important;
}
Sorry i mean to change color for only one thread
 

Shelley

Well-known member
#4
Are you referring to the first post of a particular thread that you want to style?

if your referring to the forum_view area you can locate the thread ids by using your code inspector (built into all browsers) and add something like the following for multi-coloured threads though this is basic you could colour the text within to match each thread etc but it gives you the idea. Adding that into your extra.css template.

I'm not sure what your wanting to do so i'm guessing this might be it

forum_view_colour.png


Code:
.forum_view #thread-44, #thread-44 .posterAvatar, #thread-44 .stats{
background-color: red;
}
.forum_view #thread-43, #thread-43 .posterAvatar, #thread-43 .stats{
background-color: green;
}
.forum_view #thread-42, #thread-42 .posterAvatar, #thread-42 .stats{
background-color: yellow;
}
.forum_view #thread-41, #thread-41 .posterAvatar, #thread-41 .stats{
background-color: purple;
}
 
#5
Are you referring to the first post of a particular thread that you want to style?

if your referring to the forum_view area you can locate the thread ids by using your code inspector (built into all browsers) and add something like the following for multi-coloured threads though this is basic you could colour the text within to match each thread etc but it gives you the idea. Adding that into your extra.css template.

I'm not sure what your wanting to do so i'm guessing this might be it

View attachment 36830


Code:
.forum_view #thread-44, #thread-44 .posterAvatar, #thread-44 .stats{
background-color: red;
}
.forum_view #thread-43, #thread-43 .posterAvatar, #thread-43 .stats{
background-color: green;
}
.forum_view #thread-42, #thread-42 .posterAvatar, #thread-42 .stats{
background-color: yellow;
}
.forum_view #thread-41, #thread-41 .posterAvatar, #thread-41 .stats{
background-color: purple;
}
I mean the text not the background its for one thread not all of them i have seen this somewhere in this forum but i dont remember where.
 

Shelley

Well-known member
#6
I mean the text not the background its for one thread not all of them i have seen this somewhere in this forum but i dont remember where.
try the following though it only affects the title I wasn't sure whether you wanted all text within that one thread to be coloured. You'll also have to change the ID and rename it accordingly to the thread you want to style.

Code:
.forum_view #thread-45 .title a {
color: red; }
 
#7
try the following though it only affects the title I wasn't sure whether you wanted all text within that one thread to be coloured. You'll also have to change the ID and rename it accordingly to the thread you want to style.

Code:
.forum_view #thread-45 .title a {
color: red; }
I added the text in extra.css and i added the id but nothing happend same with the one you posted before i why does it not work for me?