# Brand Header

**URL:** https://meta.discourse.org/t/brand-header/77977
**Category:** Theme component
**Tags:** official, brand-header
**Created:** [January 14, 2018, 6:27am UTC](https://meta.discourse.org/t/brand-header/77977 "2018-01-14T06:27:03Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [January 14, 2018, 6:27am UTC](https://meta.discourse.org/t/brand-header/77977/1 "2018-01-14T06:27:03Z")

</div>

| | | |
| --- | --- | --- |
| :discourse2: | **Summary** | **Brand Header** adds an extra top header for branding with your logo, navigation links, and social icons for both mobile and desktop views. Brand logo can be an image or text. |
| 👓 | **Preview** | [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/brand-header) |
| 🛠 | **Repository Link** | [https://github.com/discourse/discourse-brand-header](https://github.com/discourse/discourse-brand-header) |
| 📖 | **New to Discourse Themes?** | [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

Install this theme component

> [@](#):
>
> :discourse2: As this is an #official theme component maintained by the Discourse team, #Support, #Contribute > Bug, #Contribute > UX, and #Contribute > Feature requests can be made in the respective categories here on Meta, and tagged with the appropriate theme component tag. Click on a link below to get one started. 👍
> 
> [❓&nbsp; **Support**](https://meta.discourse.org/new-topic?category_id=6&tags=brand-header "Ask for support on configuring and using Brand Header") [🐛&nbsp; **Bug**](https://meta.discourse.org/new-topic?category_id=1&tags=brand-header "A bug report means something is broken, preventing normal/typical use of the theme component") [👀&nbsp; **UX**](https://meta.discourse.org/new-topic?category_id=9&tags=brand-header "Discussion about the user interface of Brand Header, and how features are presented (including language and UI elements)") [💡&nbsp; **Feature**](https://meta.discourse.org/new-topic?category_id=2&tags=brand-header "Discussion about how existing Brand Header features can be improved or enhanced, and how proposed new features could work")

### Features

Desktop preview:

 ![discourse-brand-header](https://global.discourse-cdn.com/meta/original/3X/5/c/5ca65e0fa9f9197e6f7a523c7e4c44bd097b9e80.PNG)

Mobile preview:

 ![discourse-brand-header-mobile](https://global.discourse-cdn.com/meta/original/3X/8/c/8c2b50992578c801144736b650ba4442b86f2563.PNG)

### Settings

| Name | Description |
| --- | --- |
| brand name | |
| website url | |
| mobile logo url | |
| links | Text links to be displayed in the header |
| icons | Icon links to be displayed in the header |
| custom font awesome icons | List of FontAwesome 6 icons used in this theme component |
| show bar on mobile | |
| plugin outlet | |

  

### Using Font Awesome 6 Icons

To allow the Font Awesome 6 Icons to correctly display in this theme component, you will need to add them to 3 places in Discourse:

1. The `svg icon subset` Site Setting
2. The `custom font awesome icons` setting in the component
3. The `icons` setting in the component

Additionally, for some Font Awesome 6 Icons, you will need to specify a `fa` or `fab` prefix with the icon name (Ex: “fab-bluesky”), due to some icons being part of a specific subset of icons. See [We’re upgrading our icons to Font Awesome 6!](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349) for details about this usage.

Once you’ve added those icons in all three places, you should see them correctly displayed in the brand header theme component.

> :discourse2: **Hosted by us?** Theme components are available to use on our Standard, Business, and Enterprise plans.

> Last edited by @SaraDev 2025-01-02T20:46:25Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [October 25, 2018, 11:16pm UTC](https://meta.discourse.org/t/brand-header/77977/89 "2018-10-25T23:16:35Z")

</div>

@vinothkannans Great component!

One small issue. Currently, if a header link is internal to a site (e.g. to a particular category), if it is tapped in the responsive menu, the responsive menu will stay open. The expected behaviour is that the menu would close.

 ![Screenshot%20at%20Oct%2026%2010-13-03](https://global.discourse-cdn.com/meta/original/3X/1/5/15221c236f627a2fbf9561d17347a87eb692f240.png)

---

<div class="post-metadata">

### Author: ![permacultureProgram](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/permacultureprogram/32/108924_2.png) [@permacultureProgram](https://meta.discourse.org/u/permacultureProgram)
#### Post date: [March 22, 2019, 5:56pm UTC](https://meta.discourse.org/t/brand-header/77977/109 "2019-03-22T17:56:37Z")

</div>

I am also seeing this issue for internal links, where the header does not disappear on mobile. Instead, the header slides right and leaves the main page opaque (I believe an overlay is being set), even if the header is folded back up.

 ![06%20AM](https://global.discourse-cdn.com/meta/original/3X/3/e/3eb227969ea8499bb3eec89dab97a331f307bc70.png)

 ![19%20AM](https://global.discourse-cdn.com/meta/original/3X/6/6/666c7f7cc0ebfa3ba1d0777ec2078b349784965a.png)

Is there a fix for this?

---

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [April 10, 2019, 3:00pm UTC](https://meta.discourse.org/t/brand-header/77977/124 "2019-04-10T15:00:21Z")

</div>

In the mobile view, when we click on the hamburger menu, if then we click outside of the menu, the hamburger menu would be expanded even more, instead of closing. and also it has some other glitches. for example when hamburger menu is open and we click on a topic link.

[https://global.discourse-cdn.com/meta/original/3X/3/9/3935304b006f90645f9d6dd14964191a7ec00038.mp4](https://global.discourse-cdn.com/meta/original/3X/3/9/3935304b006f90645f9d6dd14964191a7ec00038.mp4)

---

<div class="post-metadata">

### Author: ![smileypants707](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smileypants707/32/129984_2.png) [@smileypants707](https://meta.discourse.org/u/smileypants707)
#### Post date: [September 14, 2019, 12:15am UTC](https://meta.discourse.org/t/brand-header/77977/143 "2019-09-14T00:15:24Z")

</div>

I’m curious, is there some sort of code I can use/edit to move the links to this side of the header?

 ![Screenshot%20(25)](https://global.discourse-cdn.com/meta/original/3X/a/0/a0ff9d3c1168632f07c6305f0e0ccf049348d946.png)

Ideally with the fa-icons left in place (on the far right). I’d just like to see what it looks like.

---

<div class="post-metadata">

### Author: ![Stanzilla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stanzilla/32/166422_2.png) [@Stanzilla](https://meta.discourse.org/u/Stanzilla)
#### Post date: [January 27, 2020, 11:25pm UTC](https://meta.discourse.org/t/brand-header/77977/162 "2020-01-27T23:25:13Z")

</div>

Hey there, would you be open to adding an option to display the bar below the header instead of above?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [January 28, 2020, 5:54am UTC](https://meta.discourse.org/t/brand-header/77977/163 "2020-01-28T05:54:25Z")

</div>

Sure, I will accept it if you can submit it in a PR.

---

<div class="post-metadata">

### Author: ![Stanzilla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stanzilla/32/166422_2.png) [@Stanzilla](https://meta.discourse.org/u/Stanzilla)
#### Post date: [January 28, 2020, 1:18pm UTC](https://meta.discourse.org/t/brand-header/77977/164 "2020-01-28T13:18:40Z")

</div>

Any hints as to what needs to be changed for that? I never worked with Discourse before.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [January 29, 2020, 6:24am UTC](https://meta.discourse.org/t/brand-header/77977/165 "2020-01-29T06:24:59Z")

</div>

[https://github.com/discourse/discourse-brand-header/blob/master/common/header.html#L192-L194](https://github.com/discourse/discourse-brand-header/blob/master/common/header.html#L192-L194)

You should mount the widget in “below-site-header” connector instead of “above-site-header”. It will require few more tweaks too.

---

<div class="post-metadata">

### Author: ![Stanzilla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stanzilla/32/166422_2.png) [@Stanzilla](https://meta.discourse.org/u/Stanzilla)
#### Post date: [January 29, 2020, 3:04pm UTC](https://meta.discourse.org/t/brand-header/77977/166 "2020-01-29T15:04:46Z")

</div>

Thanks, I got it to work! Will probably PR when I have a bit more time.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [January 29, 2020, 7:11pm UTC](https://meta.discourse.org/t/brand-header/77977/167 "2020-01-29T19:11:34Z")

</div>

I merged your other PR which will add an optional target parameter to links.

[https://github.com/discourse/discourse-brand-header/pull/4](https://github.com/discourse/discourse-brand-header/pull/4)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [August 23, 2020, 7:27am UTC](https://meta.discourse.org/t/brand-header/77977/185 "2020-08-23T07:27:46Z")

</div>

> [@vinothkannans](#):
>
> Edit: To be more clear this is how I planned
> 
> ![discourse-brand-header-mobile-new](https://global.discourse-cdn.com/meta/original/3X/a/5/a5bf7cd6c232427263e6cade593e4a1db3f4229c.PNG)

This is now done in the commit below

[https://github.com/discourse/discourse-brand-header/commit/9292116ca9734743f02a7730db3387b1074a5adb](https://github.com/discourse/discourse-brand-header/commit/9292116ca9734743f02a7730db3387b1074a5adb)

---

<div class="post-metadata">

### Author: ![ClawdiaWolf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clawdiawolf/32/262518_2.png) [@ClawdiaWolf](https://meta.discourse.org/u/ClawdiaWolf)
#### Post date: [August 29, 2020, 10:45pm UTC](https://meta.discourse.org/t/brand-header/77977/186 "2020-08-29T22:45:49Z")

</div>

I love this change, but on several sites where I use it personally, and on a hosted site I’m a moderator of (the NaNoWriMo forums) we’ve been seeing some issues. Unlike the regular hamburger menu, if you try to swipe it away it bounces back onto the screen.

I’ve personally seen this on a fully updated Moto (g7) Power on Android 9 and on a fully updated iPhone 8.

There has also been at least one report of the menu opening on touches near the icon and not just on it, but I’ve personally been unable to reproduce that particular behavior.

---

<div class="post-metadata">

### Author: ![Stanzilla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stanzilla/32/166422_2.png) [@Stanzilla](https://meta.discourse.org/u/Stanzilla)
#### Post date: [September 28, 2020, 4:20pm UTC](https://meta.discourse.org/t/brand-header/77977/193 "2020-09-28T16:20:59Z")

</div>

Thanks! Turns out I did not have time to make a proper PR, do you think you’ll be able to add the below/above site header setting?

---

<div class="post-metadata">

### Author: ![aaronbauman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aaronbauman/32/204191_2.png) [@aaronbauman](https://meta.discourse.org/u/aaronbauman)
#### Post date: [March 4, 2021, 8:44pm UTC](https://meta.discourse.org/t/brand-header/77977/211 "2021-03-04T20:44:36Z")

</div>

Seems like it would be very useful to be able to add attributes to the header links somehow, e.g. for css class, target, etc.

---

<div class="post-metadata">

### Author: ![Rhidian](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhidian/32/176630_2.png) [@Rhidian](https://meta.discourse.org/u/Rhidian)
#### Post date: [April 6, 2021, 10:56am UTC](https://meta.discourse.org/t/brand-header/77977/213 "2021-04-06T10:56:35Z")

</div>

I have had a query as to why the menu is not working on mobile devices. The user pressed on the left burger menu but then on a menu link - and his perception was it wasn’t working as the menu still filled most of the screen.

I’ve had to explain you need to touch somewhere on the right of the screen, to the side of the menu, to close it.

Would it be possible to make it more intuitive, either by:

- Auto-closing the menu when you click on a menu link on mobile devices?
- Including a ‘Close Menu’ button on mobile devices?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [April 6, 2021, 12:11pm UTC](https://meta.discourse.org/t/brand-header/77977/214 "2021-04-06T12:11:35Z")

</div>

I’ve been meaning to make a similar request. I often try to dismiss the menu on mobile by swiping it to the left. It appears to be working, but then it pops back into place. The other menus in Discourse it works to swipe them back to the side to dismiss them.

---

<div class="post-metadata">

### Author: ![weber-s](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/weber-s/32/341470_2.png) [@weber-s](https://meta.discourse.org/u/weber-s)
#### Post date: [February 26, 2024, 11:49am UTC](https://meta.discourse.org/t/brand-header/77977/251 "2024-02-26T11:49:15Z")

</div>

Hello!

We experiment different layout between two version of the same forum (discourse 3.2.0.beta4-dev and discourse 3.3.0.beta1-dev).

Here is an example with no custom CSS, just the raw composant.

| v3.2 | v3.3 |
| --- | --- |
| ![v3.2](https://global.discourse-cdn.com/meta/original/4X/0/1/f/01f0a489a94a5812d4722b650505f7c0efc5509c.png) | ![v3.3](https://global.discourse-cdn.com/meta/original/4X/e/a/6/ea6479573af18136d75d8d3f7782a21f34330445.png) |

Does the discourse HTML layout changed between the 2 versions?

Also the “slide-in” behaviour is broken in the v3.3.

---

<div class="post-metadata">

### Author: ![37Rb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/37rb/32/224158_2.png) [@37Rb](https://meta.discourse.org/u/37Rb)
#### Post date: [June 25, 2024, 11:08pm UTC](https://meta.discourse.org/t/brand-header/77977/263 "2024-06-25T23:08:19Z")

</div>

I’m having this same problem on Discourse 3.2.2. The slide-in behavior is broken.

> [@Brand header mobile menu doesn't fully expand until window resize](https://meta.discourse.org/t/brand-header-mobile-menu-doesnt-fully-expand-until-window-resize/312422):
>
> We’re having a problem where the brand header menu on the upper left only partially expands on mobile when tapped. We have it set to not display the bar on mobile. If I just tap the hamburger menu it looks like this. But if I then resize the window in any direction it expands fully and shows all the sub-links. How do I get it to expand fully when tapped without needed a window resize?

I’m wondering, seeing on the dates of the above posts, is the brand-header theme component still supported?

---

<div class="post-metadata">

### Author: ![37Rb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/37rb/32/224158_2.png) [@37Rb](https://meta.discourse.org/u/37Rb)
#### Post date: [July 8, 2024, 3:25pm UTC](https://meta.discourse.org/t/brand-header/77977/264 "2024-07-08T15:25:04Z")

</div>

Based on the previous 2 posts, it’s been broken for at least 5 months and no one has responded. I’m going to assume this theme component is dead unless someone says otherwise.

[Next page](https://meta.discourse.org/t/brand-header/77977.md?page=2)
