9yN75.png

[Solved] Custom banner CSS XenForo 2 ?

Matverben

Translator
True Member
+Member+
Registered
#1
Hello everybody,

I encounter several problems with xF 2.0, particularly on custom user banners.
I have correctly added my CSS to my EXTRA.less template like I did in xF 1:
CSS:
.userBanner.adminforum {
    color: white;
    background-color: black;
    border-color: yellow;
    border: solid 1px yellow;
}
.userBanner.adminforum:before {
    content: "\f0b1";
    font-family: FontAwesome;
    margin-right: 4px;
}
And I have added this piece of code in the Usegroup Options (Custom CSS Banner) : userBanner adminforum

But it doesn't want to show whatever I do.

If you have a solution it will be great !
Thanks.
 

Similar threads

XenForo Rocks

Team Member
Administrator
Moderator
+Lifetime VIP+
Contributor
ViP
True Member
Suppliers
Registered
#2
Hello everybody,

I encounter several problems with xF 2.0, particularly on custom user banners.
I have correctly added my CSS to my EXTRA.less template like I did in xF 1:
CSS:
.userBanner.adminforum {
    color: white;
    background-color: black;
    border-color: yellow;
    border: solid 1px yellow;
}
.userBanner.adminforum:before {
    content: "\f0b1";
    font-family: FontAwesome;
    margin-right: 4px;
}
And I have added this piece of code in the Usegroup Options (Custom CSS Banner) : userBanner adminforum

But it doesn't want to show whatever I do.

If you have a solution it will be great !
Thanks.
Here it's working XF 2.0 - Custom banners. Also make sure you check for caching!
 

Matverben

Translator
True Member
+Member+
Registered
#4
Hello, thanks for the answer, I will try this and say if it worked or not.
 

Similar threads

Top