Replacing default avatars XF2 with FontAwesome

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
 
Back
Top