Anyibe

Status
This thread has been locked.

XD

Supreme
Feedback score
7
Posts
1,124
Reactions
432
Resources
0
Anyibe here know how to style user banners on XF?

I want my banners like the premium and supreme ones under my name
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Brazy

CEO of Occasionally Returning
Supreme
Feedback score
14
Posts
2,698
Reactions
1,373
Resources
0
These instructions will explain how to create your own custom CSS for user banners.

Give the banner a title:

banner-title-png.4312


Choose a class name for your custom class, in this example we are using my-style.
Add it to the custom CSS field for the user group, like so:

custom-field-png.4313


If you want the banners to wrap around the message user info block then you must also use the userBanner class, as shown above.

Note that there are no . before the class names and they are separated by a space.

Then add the class and your code to EXTRA.css.
You can style it how you want, for example, this code:

Code:
.userBanner.my-style
{
color: white;
background-color: green;
}

banner-1-png.4311


Whereas this:

Code:
.userBanner.my-style
{
color: white;
background-color: green;
border-color: green;
}
banner-2-png.4314


If you don't want the wrapping effect, simply don't include the userBanner class in the custom CSS field and EXTRA.css.
 

XD

Supreme
Feedback score
7
Posts
1,124
Reactions
432
Resources
0
These instructions will explain how to create your own custom CSS for user banners.

Give the banner a title:

banner-title-png.4312


Choose a class name for your custom class, in this example we are using my-style.
Add it to the custom CSS field for the user group, like so:

custom-field-png.4313


If you want the banners to wrap around the message user info block then you must also use the userBanner class, as shown above.

Note that there are no . before the class names and they are separated by a space.

Then add the class and your code to EXTRA.css.
You can style it how you want, for example, this code:

Code:
.userBanner.my-style
{
color: white;
background-color: green;
}

banner-1-png.4311


Whereas this:

Code:
.userBanner.my-style
{
color: white;
background-color: green;
border-color: green;
}
banner-2-png.4314


If you don't want the wrapping effect, simply don't include the userBanner class in the custom CSS field and EXTRA.css.
What about the rectangles on MCM
 
Status
This thread has been locked.
Top