Jump to content

Add Font Awesome icons to your usergroups

Featured Replies

Posted
  • Administrators

Tutorial for version 2.x of xenForo : add Font Awesome icons to your usergroups!

Here is the basic code to add in your EXTRA.less template :

/*add fa to your usergroups*/
.username--style3:before {
font-family: "FontAwesome";
content: "\f013";
color: inherit;
padding-right: 4px;
display: inline-block;
}

style3 is my usergroup Admin.

If you want a rotation :

.username--style3:hover:before{
display:inline-block;
-webkit-transform:rotate(360deg);
-moz-transform:rotate(360deg);
-o-transform:rotate(360deg);
-ms-transform:rotate(360deg);
transform:rotate(360deg);
-webkit-transform:rotate(360deg);
-moz-transform:rotate(360deg);
-ms-transform:rotate(360deg);
-o-transform:rotate(360deg);
transition:all 0.8s;
-webkit-transition:all 0.8s;
-moz-transition:all 0.8s;
-ms-transition:all 0.8s;
-o-transition:all 0.8s
}

Screen:

imageproxy.png

Archived

This topic is now archived and is closed to further replies.