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

Background-Color in Conversation

Chris D

XenForo developer
Staff member
#2
So if we wanted the background to be red, are we talking it should look like this:

conversation_view.PNG

In EXTRA.css you would add:

Code:
.conversation_view
{
background-color: red;
}
Not that you would want red, of course...

Incidentally, if you wanted a similar effect in the thread view, then it would be:

Code:
.thread_view
{
background-color: red;
}
 

DSF

Well-known member
#3
I know ... .conversation_view background is no problem.
I mean der HEADER Background Color in conversions.
 

MagnusB

Well-known member
#4
Just to make sure, do you mean you want the header (with logo block etc) having a different background color when viewing a private conversation?

I would think the easiest way to do that is to add
Code:
#header {
          background-color: red !important;
}
in conversation.css
This is with the disclaimer that I understand the XF template system correctly and that css will only be called when viewing a conversation. If you want to do it with extra.css you will most likely have to use conditionals.
 

MagnusB

Well-known member
#7
Another way would be to use conditionals in the header html to apply a class if you are looking at a conversation. I would say one single CSS edit to conversation.css is easier.
 

Chris D

XenForo developer
Staff member
#8
Yeah, in Conversation.css is a way.
I avoid any templatemodification ... if possible.
In this particular case it would be unavoidable.

But if editing templates is a concern, have you considered the Template Modification System add-on?

It doesn't change any of the original templates and is basically a find and replace type system.

If a new version of XenForo is released all of your templates remain "up to date" and it would be a lot less work to get template modifications to work with the new version.

EDIT: And again MagnusB is right, but that's still a template edit.
 

Chris D

XenForo developer
Staff member
#10
I've never used the vBulletin version.

All I know is the XenForo version works perfectly. It's very highly thought of here and I think quite a few people here are advocates for it being included as a core feature.