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

Can’t you hide them with CSS?

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

そのページのカスタムフィールドをすべて非表示にしたい場合は、テーマに以下の CSS を追加してください。

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

特定のフィールドを非表示にしたい場合は、そのフィールドに付与される固有のクラスをターゲットにします。

これは、管理画面で設定したフィールド名を小文字にしたもので、スペースはダッシュに置き換えられます。

例えば、「Work experience」は

.user-field-work-experience

となります。このクラスをテーマに追加することで、その特定のフィールドを非表示にできます。

.invites-show {
  .user-field-work-experience {
    display: none;
  }
}
「いいね!」 5

Site setting to hide custom user fields from signup page にてクローズ済み