Support Adding new colors to Thread Prefixes

duppy

XF-Fan
Loyal Member
I know there is a field called "Custom CSS Class Name(s)" when adding a new prefix, but I am not sure what has to go there. I am trying to create a few new colors instead of just the default ones. How would I go about accomplishing this?

Thanks,
Duppy
 
Solution
  • Try this
Code:
.xnforo{
;background-color: #00000
}
  • This is with border
CSS:
  .xnforohashiye{background: #ffcb00;
    color: #000000;
    border: 1px solid #cca200;
    }

XenForo

Administrative
171151-485db2f583b303860153d6cb27abeba7.md.jpg
  • Extra.less
CSS:
.label--panda {
    color: #fff !important;
    background: #000 !important;
    border-color: #fff !important;
}
  • OR
CSS:
// Custom Prefix Colors
.label.label--greyBlack {
    color: #fff;
    background: #000;
    border-color: #999;
}
.label.label--orangeFire {
    color: #fff;
    background: #ff9900;
    border-color: #cc3300;
}
.label.label--dirtBrown {
    color: #fff;
    background: #996633;
    border-color: #663300;
}
.label.label--colorArchived {
    color: #000;
    background: #F1D592;
    border-color: #966B4F;
}
.label.label--colorWorship {
    color: #ffd1fb;
    background: #95398d;
    border-color: #c05db8;
}

 

duppy

XF-Fan
Loyal Member
Thanks @XenForo - I am going to test it out now. Also, I am afraid to install that plugin. That's the one that corrupted my entire DB the last time I installed it on XF 2.2.4. I will try it again on another test installation. I also don't think that plugin is in English.
 

duppy

XF-Fan
Loyal Member
I added the CSS to my extra.less, then I entered the .label.label--greyBlack in the CSS field under prefixes, but it doesn't seem to work.
 
  • Tags
    support adding new colors to thread prefixes
  • Back
    Top Bottom