Is there a way to disable the `hide my public profile and presence features` profile setting?

(Jay Pfaffman) #1

I’ve got a community that does not want users to hide their profile or online presence. I don’t see a site setting to disable this. Is there a way to hide the checkbox on the user profile with CSS? It doesn’t seem to have a thingy that identifies just that field.

(Jeff Atwood) #2

Even if it doesn’t, you can target it using numeric offsets in the CSS, conceptually "hide the third thing in this <div>" or whatever.

The only risk is that if the list later changes size, your offset will be incorrect.

(Joe) #3

This should work so long as it stays the last item on that list:

.user-preferences .control-group.other .controls:last-of-type {
  display: none;

Beyond that, you can also remove it altogether by modifying the template. All you need is to use this:

<script type="text/x-handlebars" data-template-name="preferences/interface">


and copy / paste the contents of this file in there after removing line #43

If you modify the template and it’s updated in core, you need to update your template as well.