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 Mi Piace

Can’t you hide them with CSS?

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

Se desideri nascondere tutti i campi personalizzati in quella pagina, puoi aggiungere questo CSS al tuo tema.

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

Se desideri nascondere un campo specifico, puoi selezionarlo tramite la classe particolare che gli assegniamo.

È fondamentalmente il nome del campo che hai impostato nell’amministratore, scritto in minuscolo. Inoltre, sostituiamo gli spazi con dei trattini.

Quindi, “Esperienza lavorativa” diventa

.user-field-work-experience

e puoi aggiungere questo al tuo tema per nascondere quel campo specifico.

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

Chiuso a favore di Site setting to hide custom user fields from signup page