Guest viewing is limited

Xenforo Code [2.x] How to add a Custom Group Badge / Banner to User Info (1 Viewer)

ReD DeViL

đź‘‘ Devil Call,Z Me DaD đź‘‘
Staff member
đź‘‘ Administrator đź‘‘
Administrator
Jul 18, 2020
7,984
13,592
521
Offline
Compatible XF Versions 2.x 2.0

How to add a custom Group Badge / Banner to User Info:
Option #1
- Using "User banner text"


Go to: AdminCP > Appearance > Templates > and search for the "extra.less" file
Open the file and add this code (Call it anything you want. In the example here, I called it ".mybadge" ):

Code:



Then go to "Groups and Permissions > User Groups" and select the group you want to add a badge too.

Under "User banner styling," check "Other, using custom CSS class name" and enter the name you gave it in the extra.less file

IMPORTANT: Be sure to remove the "." (dot) in front of the name as shown below:



Option #2 - Remove "User banner text" and use "User title override"






Go to: AdminCP > Appearance > Templates > and search for the "extra.less" file

Open the file and add this code (Call it anything you want. In the example here, I called it ".tac" ):

Code:




 

Users who are viewing this thread

33,499Threads
45,488Messages
8,493Members
mupetLatest member
Top