# Hiding the header code I added from the chat area

**URL:** https://meta.discourse.org/t/hiding-the-header-code-i-added-from-the-chat-area/272546
**Category:** Development
**Tags:** mobile, chat, css
**Created:** [July 23, 2023, 10:47am UTC](https://meta.discourse.org/t/hiding-the-header-code-i-added-from-the-chat-area/272546 "2023-07-23T10:47:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vifyirusti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vifyirusti](https://meta.discourse.org/u/vifyirusti)
#### Post date: [July 23, 2023, 10:47am UTC](https://meta.discourse.org/t/hiding-the-header-code-i-added-from-the-chat-area/272546/1 "2023-07-23T10:47:14Z")

</div>

Hello dear friends.

I added a code to the header and it works fine.  
The code I added;  
div class=“block22”  
button class=“block22” Block Button button  
div

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/a/b/cabd7262a7c51a677ff88dfc857830beff74b926.png)

But I want to hide this item from chat page on mobile. I really need help on this. All my attempts have failed.

Kind regards

---

<div class="post-metadata">

### Author: ![vifyirusti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vifyirusti](https://meta.discourse.org/u/vifyirusti)
#### Post date: [July 23, 2023, 2:55pm UTC](https://meta.discourse.org/t/hiding-the-header-code-i-added-from-the-chat-area/272546/2 "2023-07-23T14:55:51Z")

</div>

Just in the chat page, is there any help on how to hide the header code that I added?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [July 23, 2023, 3:01pm UTC](https://meta.discourse.org/t/hiding-the-header-code-i-added-from-the-chat-area/272546/3 "2023-07-23T15:01:44Z")

</div>

Hello 👋

I am on my phone now but if I remember correctly you can target the `.has-full-page-chat` body class.

Mobile / CSS

```scss
body.has-full-page-chat {
  .block22 {
    display: none;
  }
}

```

---

<div class="post-metadata">

### Author: ![vifyirusti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vifyirusti](https://meta.discourse.org/u/vifyirusti)
#### Post date: [July 23, 2023, 3:11pm UTC](https://meta.discourse.org/t/hiding-the-header-code-i-added-from-the-chat-area/272546/4 "2023-07-23T15:11:23Z")

</div>

You are my hero.

Respects

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 22, 2023, 3:12pm UTC](https://meta.discourse.org/t/hiding-the-header-code-i-added-from-the-chat-area/272546/5 "2023-08-22T15:12:14Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
