• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add image before username

Garamond

Well-known member
#1
Is it possible to add a small icon to the left of the username, for certain user groups? And if so, what would the code look like? I'm trying to edit Members -> User Groups -> Username CSS
 

James

Well-known member
#2
You could use username CSS, but that would make the image only appear in areas where the rich username is used. If you want it permanently, you should probably overwrite the username helper and prepend an image.
 

katsulynx

Well-known member
#7
It's a problem at your end, the code works totally fine and is unrelatd to your XenForo version. Go to Users->User Groups->List User Groups, select your desired User Group and add

background: url("yourimage") no-repeat scroll left center transparent;
padding-left: 17px;
as a start to the "User Name CSS"-Block. Make of course sure, you are replacing yourimage with a valid image url.