MyBB Community Forums

Full Version: Remove default avatar if there is none.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I wanna remove avatars on posts if the user have not uploaded one. How can I do this?

Thank you.

Please help.
you can try adding below style rule at the bottom of global.css of the theme
img[src*="default_avatar.png"] {display: none;}

global.css should be edited through forum admin panel & it needs to be edited in advanced mode
remember hard refreshing your browser [eg. press CTRL + F5] on a thread page after saving changes to the stylesheet
You may also be able to just remove default_avatar.png from your server.
^ removing image file doesn't help much and that would cause some other troubles !