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
CmTeamPk King
đź‘‘ Administrator đź‘‘
CmTeamPK Boss
CmTeamPk Developer
Administrator
Jul 18, 2020
8,242
13,535
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

34,192Threads
46,227Messages
8,654Members
Bang BangLatest member
Top