# Links into the header block

**URL:** https://meta.discourse.org/t/links-into-the-header-block/234377
**Category:** Development
**Created:** [July 29, 2022, 8:43am UTC](https://meta.discourse.org/t/links-into-the-header-block/234377 "2022-07-29T08:43:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![thebigzhu](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@thebigzhu](https://meta.discourse.org/u/thebigzhu)
#### Post date: [July 29, 2022, 8:43am UTC](https://meta.discourse.org/t/links-into-the-header-block/234377/1 "2022-07-29T08:43:34Z")

</div>

What is the best way to add links under the header? (I mean, just attached under the header, but into the html header block). If I insert the links in the Header, they are put on top. While if I put them in After Header, it puts them under but not inside the header block. Maybe there is a way to add links with javascript inside the header block? Thanks in advance!

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [August 3, 2022, 5:47pm UTC](https://meta.discourse.org/t/links-into-the-header-block/234377/2 "2022-08-03T17:47:55Z")

</div>

If your simply looking to add links, there are some theme components that already accomplish this, such as:

- [Custom Header Links](https://meta.discourse.org/t/custom-header-links/90588)
- [⬇️ Dropdown Header](https://meta.discourse.org/t/dropdown-header/226170)

Looking at the code these may give you a hint into accomplishing what you’re looking for, but in short, you would need to leverage Discourse’s [pluginAPI](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/lib/plugin-api.js) to decorate an existing widget in the header, such as `header-buttons:before` and then you can use the virtual-dom to add anchor tags. Take a look at [this guide](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648) for more information on that.
