An option for user field to be hidden in sign up

AI-generated summary

The discussion is about hiding user fields during sign-up. hnaseri wants an option to hide specific fields for administrative purposes, but currently, this feature doesn’t exist. zogstrip suggested hiding fields with CSS, and Johani provided code examples to demonstrate this approach. To hide all custom fields, use the following CSS:

.invites-show {
  .user-fields {
    display: none;
  }
}

For a specific field, target its class, which is the field’s name in lowercase with spaces replaced by dashes (e.g., .user-field-work-experience). Then, add the following code to the theme:

.invites-show {
  .user-field-work-experience {
    display: none;
  }
}

We want some user fields that are specific to our own administration needs. We don’t want the user to see them in sign up. However it seems there is no such option right now.

3 « J'aime »

Can’t you hide them with CSS?

I didn’t try. Does it hide a specific user field or all of them?

Si vous souhaitez masquer tous les champs personnalisés sur cette page, vous pouvez ajouter ce CSS à votre thème.

.invites-show {
  .user-fields {
    display: none;
  }
}

Si vous souhaitez masquer un champ spécifique, vous pouvez le cibler grâce à la classe particulière que nous lui ajoutons.

Il s’agit essentiellement du nom du champ que vous avez défini dans l’administration, en minuscules. Nous remplaçons également les espaces par des tirets.

Ainsi, « Expérience professionnelle » devient

.user-field-work-experience

et vous pouvez ajouter ceci à votre thème pour masquer ce champ spécifique.

.invites-show {
  .user-field-work-experience {
    display: none;
  }
}
5 « J'aime »

Fermé en faveur de Site setting to hide custom user fields from signup page