# User Card: Chat button is gone

**URL:** https://meta.discourse.org/t/user-card-chat-button-is-gone/353133
**Category:** Support
**Tags:** user-card
**Created:** [February 19, 2025, 5:13pm UTC](https://meta.discourse.org/t/user-card-chat-button-is-gone/353133 "2025-02-19T17:13:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Magie](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Magie](https://meta.discourse.org/u/Magie)
#### Post date: [February 19, 2025, 5:13pm UTC](https://meta.discourse.org/t/user-card-chat-button-is-gone/353133/1 "2025-02-19T17:13:28Z")

</div>

Dear Discourse community,

We used to have a chat button on our user cards under `/u`. But now they are gone. I am wondering why? Can you help me please?

## Why display: none for Admins?

For Admins the “usercard-controls” are set to `display: none`. I could fix that with CCS. So that is not the big problem.

 ![The image shows a code editor with highlighted sections in CSS for "user-card" and "user-card-directory," and pictograms indicating a user profile. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/6/9/6/696ed09dc832586a24e5e007c02829defd918373.png)

## Button not in DOM for normal users

However, for normal users, the element of the button does not even get into the DOM. That is a problem? How can I show it again?

 ![The image shows a web development interface with an embedded code editor on the left and a CSS code section on the right, both featuring circular icons and labeled as "testuser-4" (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/f/f/0/ff01a05dd7d8107c5f5a85116f872f01d26cb56d.jpeg)

## What we need for all:

Basically, what I am looking for are these buttons but for all users, not only Admins. See example below:

 ![The image is a user interface screen showing a contact labeled "testuser-4" with an option to message or "Chat" . (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/3/0/e/30e31cab2d8a56179f089f782eccb721135aa021.png)

## Settings

- I set `Chat allowed groups` to TL 1
- I removed all of my CSS but it had no effect.

## Please ❤

If you have any idea, let me know.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [February 19, 2025, 5:40pm UTC](https://meta.discourse.org/t/user-card-chat-button-is-gone/353133/2 "2025-02-19T17:40:54Z")

</div>

Hey,

> [@Magie](#):
>
> For Admins the “usercard-controls” are set to `display: none`

If you look at the origin, it seems to be part of your customizations, either in the theme or in theme components. You would see `user-card.scss` if it’s a change from the core.

![image](https://global.discourse-cdn.com/meta/original/4X/d/b/e/dbe68d145b64161b0bb62efdbb0240968b969213.png)

You can use the [safe mode](https://meta.discourse.org/t/53504?silent=true) to determine if plugins/theme components cause an issue!

> [@Magie](#):
>
> for normal users, the element of the button does not even get into the DOM

What is the value of `Direct message enabled groups` setting?  
The chat button visibility in this context is associated to this setting.

---

<div class="post-metadata">

### Author: ![Magie](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Magie](https://meta.discourse.org/u/Magie)
#### Post date: [February 19, 2025, 11:04pm UTC](https://meta.discourse.org/t/user-card-chat-button-is-gone/353133/3 "2025-02-19T23:04:22Z")

</div>

Hi @Arkshine  
Thank you for your reply.  
The setting `Direct message enabled groups` is set to trustlevel1 users.

I will try [safe mode](https://meta.discourse.org/t/53504?silent=true) again but so far it was not successful.

Theme 29 corresponds with „User Card Directory Component“s ID of 29 in my case. So I am wondering if that comes from the CSS of the component?

Also, what I am wondering the most is why the button is not even in the html for normal users? It’s not on display:none. It’s just not in the html at all.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [February 20, 2025, 2:57am UTC](https://meta.discourse.org/t/user-card-chat-button-is-gone/353133/4 "2025-02-20T02:57:08Z")

</div>

> [@Magie](#):
>
> Theme 29 corresponds with „User Card Directory Component“s ID of 29 in my case. So I am wondering if that comes from the CSS of the component?

You’re right, it’s from this TC! It looks intentional to display the username fully.  
I think it’s a fair tradeoff since you can click on it to go to the user’s profile.

> [@Magie](#):
>
> Also, what I am wondering the most is why the button is not even in the html for normal users? It’s not on display:none. It’s just not in the html at all.

The button should appear if the user is part of TL1+ group. I would check again just to be sure! You might have tested when the controls were hidden, or the wrong user was chosen.
