Profile picture
In this community, the profile picture consists of my initials as long as I haven’t uploaded a picture myself.
In my own community, however, it’s a yellow circle for every member. Where does that come from, and how can I change it?
Check in your settings under Privacy Settings if the 'Use Gravatar Photo Service...' is checked. When I uncheck it on my site, I get the yellow circles as well.
Thomas Oates Thank you, that was helpful. However, due to GDPR regulations, I’d prefer not to use this feature. Is there an alternative way?
Maybe it would be possible to set a default profile picture that is used until a member uploads their own?
Karen Wiltner I haven't tried this yet but it does look like you could modify the default yellow image by writing a bit of code that uses this filter (fluent_community/default_avatar).
Thomas Oates Thanks a lot, that’s a really great idea! I’m afraid my coding skills aren’t quite good enough for that – even though I work in IT myself. 🫣
Maybe someone can help me with it?
Karen Wiltner This bit of code should do it. You should be able to add it using a snippets plugin like FluentSnippets or directly to your theme functions.php if using a custom theme. Change the URL to your desired image.
add_filter('fluent_community/default_avatar','change_default_avatar',10,2);
function change_default_avatar($defaultimage, $id) {
return 'https://somewebsite.com/defaultavatarimage.jpg';
}
Karen Wiltner if you can at least access the plugin files you can also replace the default image physically with one you prefer. You'd need to change it after each update though I'd imagine.
Ross H Would uploading/setting a default avatar be a good feature to add to one of your plugins?
Thomas Oates If default_avatar works well I'll add it to quick fixes.
Ross H Seems to work fine in my limited 2 minutes of testing...
Thomas Oates love it, thank you! 😍
And I learned about another cool plugin, FluentSnippets 🤩
Ross H yes, works perfectly 🤩
Thomas Oates good stuff, thanks for doing the leg work. I'll add this to quick fixes 👍