Customize user card

AI-generated summary

The discussion revolves around customizing the user card in Discourse. awesomerobot explains that custom fields can be added via the admin panel under customize > user fields, which can then be displayed on the user card. To hide information, custom CSS can be applied through the theme customization settings. sbernhard asks about hiding user statistics on the profile page, and codinghorror confirms this is possible with CSS. ToddZ inquires about advanced customization using templates, but awesomerobot clarifies that template overrides are no longer supported, directing users to use outlets or transformers as outlined in the theme development guide here.

Is it somehow possible to customize the information / fields on a user card?

1 Like

To add a custom field, from your site’s admin panel you can setup a user field: customize > user fields

This will create a field for a user to fill out in their preferences, and it can optionally be shown on the user card.

If you’re looking to hide information on the user card, the easiest way is by adding custom CSS to your site’s theme.

6 Likes

Thank you very much.

Another, similar question: is there a way to hide the user statistics at the user profile page?

1 Like

Yes, any element you see on the screen can be targetted and hidden via CSS rules in Admin, Customize.

1 Like

The link there is now a 404… is this where we’d be looking today?:
app/assets/javascripts/discourse/app/components/user-card-contents.gjs

Yes that’s accurate! that old reply about advanced customization isn’t really relevant anymore… so I’m going to remove that part. We no longer support template overrides, so you’ll want to rely on outlets or transformers as mentioned in Developing Discourse Themes & Theme Components

1 Like

Thank you! Was just dipping a toe – glad to avoid any wrong turns.