# How can I add a button to the header?

**URL:** https://meta.discourse.org/t/how-can-i-add-a-button-to-the-header/132295
**Category:** Support
**Created:** [October 31, 2019, 5:52am UTC](https://meta.discourse.org/t/how-can-i-add-a-button-to-the-header/132295 "2019-10-31T05:52:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![\_alejandro](https://avatars.discourse-cdn.com/v4/letter/_/958977/32.png) [@\_alejandro](https://meta.discourse.org/u/_alejandro)
#### Post date: [October 31, 2019, 5:52am UTC](https://meta.discourse.org/t/how-can-i-add-a-button-to-the-header/132295/1 "2019-10-31T05:52:45Z")

</div>

Hello, how can I add a button like this?

 ![01](https://global.discourse-cdn.com/meta/original/3X/2/7/275c53af1c040fd9d174b79015fab728dcd726d5.png)

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [October 31, 2019, 6:14am UTC](https://meta.discourse.org/t/how-can-i-add-a-button-to-the-header/132295/2 "2019-10-31T06:14:29Z")

</div>

We have a couple of components that you can use to add links to the header [Custom Header Links](https://meta.discourse.org/t/custom-header-links/90588) and [Custom Header Links (icons)](https://meta.discourse.org/t/iconified-header-links/86307)

---

<div class="post-metadata">

### Author: ![\_alejandro](https://avatars.discourse-cdn.com/v4/letter/_/958977/32.png) [@\_alejandro](https://meta.discourse.org/u/_alejandro)
#### Post date: [October 31, 2019, 6:38am UTC](https://meta.discourse.org/t/how-can-i-add-a-button-to-the-header/132295/3 "2019-10-31T06:38:28Z")

</div>

Is there a way to hide the “Custom Header Links” for the logged in users? 🙂

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [October 31, 2019, 6:40am UTC](https://meta.discourse.org/t/how-can-i-add-a-button-to-the-header/132295/4 "2019-10-31T06:40:13Z")

</div>

You can add this to your theme

```plaintext
html:not(.anon) .custom-header-links {
  display: none;
}

```

---

<div class="post-metadata">

### Author: ![\_alejandro](https://avatars.discourse-cdn.com/v4/letter/_/958977/32.png) [@\_alejandro](https://meta.discourse.org/u/_alejandro)
#### Post date: [October 31, 2019, 6:43am UTC](https://meta.discourse.org/t/how-can-i-add-a-button-to-the-header/132295/5 "2019-10-31T06:43:25Z")

</div>

Thanks a lot! 🙂

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [October 31, 2019, 6:43am UTC](https://meta.discourse.org/t/how-can-i-add-a-button-to-the-header/132295/6 "2019-10-31T06:43:56Z")

</div>


