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

Background-Color in Conversation

Discussion in 'Styling and Customization Questions' started by DSF, May 14, 2012.

  1. DSF

    DSF Well-Known Member

    How can I change in conversations the Header-background-color via EXTRA.css ?
    Is there a way?
  2. Chris D

    Chris D XenForo Developer Staff Member

    So if we wanted the background to be red, are we talking it should look like this:


    In EXTRA.css you would add:

    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:

    background-color: red;
  3. DSF

    DSF Well-Known Member

    I know ... .conversation_view background is no problem.
    I mean der HEADER Background Color in conversions.
  4. MagnusB

    MagnusB Well-Known Member

    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
    #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.
  5. Chris D

    Chris D XenForo Developer Staff Member

    Sorry I missed the word Header ;)

    Yeah MagnusB is right. That would be a good way to do it.
  6. DSF

    DSF Well-Known Member

    Yeah, in Conversation.css is a way.
    I avoid any templatemodification ... if possible.
  7. MagnusB

    MagnusB Well-Known Member

    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.
    Yorick likes this.
  8. Chris D

    Chris D XenForo Developer Staff Member

    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.
  9. DSF

    DSF Well-Known Member

    So is it and I have do it so now. :)

    I know TMS since vB.
    Sorry, but ... never again for me.
  10. Chris D

    Chris D XenForo Developer Staff Member

    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.

Share This Page