Disable bio, location and profile picture

I’ve been unsuccessfully searching in the settings how to disable the bio, the location and the profile pic options.
We don’t want people to be able to put a picture of their own as a profile picture, to say where they are located or to be able to put customized info in their bio (for confidentiality purposes).
Is this something that can be done?
Can someone help me with this?

Thanks a lot!

2 Likes

Hide it all with CSS.

2 Likes

Also, there is a hide user profiles from public site setting.

@pfaffman actually, this option only hides the profiles from someone who isn’t logged in, but the profiles are still visible for logged in users.

1 Like

True! I was confusing it with the user setting to hide their profile.

I think that hiding all of that with CSS (both the ability to enter the information as well as see it) would probably be Good Enough, but a plugin that sets the Hide my public profile and presence features for all users wouldn’t be too hard if you can install arbitrary plugins

1 Like

Avatar uploads can be disabled with the site setting allow uploaded avatars

I don’t believe we have a way to disable bios, so CSS could do it:

#user-card .bio, // user card
.user-main .bio, // profile page
.control-group.pref-bio  { // user preference
  display: none;
}

No setting for location either, so also use CSS here:

#user-card .location, // user card
.user-main .user-profile-location, // profile page
.control-group.pref-location {  // user preference
  display: none;
}

A savvy user could undo that CSS in their browser inspector to add the data, but I’m not sure why they’d go through that effort!

6 Likes

Thanks very much @awesomerobot!
This is very helpful!

Would you also happen to have the code to hide the website field by any chance?

oh sure, so instead of this:

#user-card .location, // user card
.user-main .user-profile-location, // profile page
.control-group.pref-location {  // user preference
  display: none;
}

you would do

#user-card .location-and-website, // user card
.user-main .location-and-website, // profile page
.control-group.pref-location,  // user preferences
.control-group.pref-website { 
  display: none;
}

We have more info about how to make CSS changes like this in a guide here: How to make CSS changes on your site

3 Likes

Thank you so much! This is very appreciated!
Thanks also for the guide.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.