Replacing default avatars XF2 with FontAwesome

kick

Administrator
Staff member
Joined
Apr 7, 2020
Messages
187
Reaction score
229
Points
43
Go to settings - /admin.php?options/groups/users/ User Preferences and disable - Enable dynamic avatars by default.
Then go to Style Settings> Avatars> Default Text for Avatar
And we prescribe the unicode of the desired icon there, you can see here - Font Awesome Cheatsheet.
1589194357034.png

Put extra.less:
Less:
.avatar {
    &.avatar--default {
        &.avatar--default--text {
            > span:before {
                .m-faBase();
            }
        }
    }
}
Result:
1589194416016.png

1589194435279.png
 
Top