# Header Categories Navbar

**URL:** https://meta.discourse.org/t/header-categories-navbar/249179
**Category:** Theme component
**Tags:** official, categories-navbar
**Created:** [December 16, 2022, 7:57pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179 "2022-12-16T19:57:22Z")
**Posts on this page:** 19
**Page:** 2

<div class="post-metadata">

### Author: ![Arnold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arnold/32/389492_2.png) [@Arnold](https://meta.discourse.org/u/Arnold)
#### Post date: [June 4, 2024, 9:43pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/21 "2024-06-04T21:43:44Z")

</div>

I got the problem its only shown in the top left corner and not full width. Im using the full width and header seach theme component. I dont have any plugins installed.

 ![image (1)](https://global.discourse-cdn.com/meta/original/4X/5/a/0/5a0cfc41199c825be2ddc108b2da817558c5b3f9.png)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 4, 2024, 9:51pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/22 "2024-06-04T21:51:52Z")

</div>

I can reproduce the problem using the header categories navbar and full width component together.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [June 4, 2024, 10:07pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/23 "2024-06-04T22:07:22Z")

</div>

to get this working along with the full width component, you’d need to add some CSS to your theme…

Something like this should get you in better shape:

```css
html:not(.has-full-page-chat) .custom-categories-navbar {
  grid-column-start: 1;
  grid-column-end: -1;
}

.has-sidebar-page .d-header > .wrap .contents {
  gap: 0 1em;
}

```

---

<div class="post-metadata">

### Author: ![Arnold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arnold/32/389492_2.png) [@Arnold](https://meta.discourse.org/u/Arnold)
#### Post date: [June 4, 2024, 10:10pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/24 "2024-06-04T22:10:47Z")

</div>

Thank you, this fixed the problem!

Also im wondering if there is a way to sort the categories shown there?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 4, 2024, 10:17pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/25 "2024-06-04T22:17:20Z")

</div>

I think the order is the same as on the categories page. You can change that by following [Reordering categories and setting fixed category positions](https://meta.discourse.org/t/reorder-adjust-category-listings-and-set-fixed-category-positions/153627)

---

<div class="post-metadata">

### Author: ![Arnold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arnold/32/389492_2.png) [@Arnold](https://meta.discourse.org/u/Arnold)
#### Post date: [June 4, 2024, 10:21pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/26 "2024-06-04T22:21:49Z")

</div>

Next problem:

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

When in a topic im trying to click on a category.

Then this happens:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/1/d/71dbd780c4385a08c2c5709a7f3d27f3860ea4a0.png)

The menu disappears.

Console error:

```plaintext
custom-categories-navbar.js:64 Uncaught (in promise) 
TypeError: Cannot read properties of null (reading 'scrollIntoView')
    at n.setActiveSlug (custom-categories-navbar.js:64:52)
    at new n (custom-categories-navbar.js:48:12)
    at EmberGlimmerComponentManager.createComponent (base-component-manager.js:26:14)
    at EmberGlimmerComponentManager.createComponent (ember-component-manager.js:51:29)
    at M.create (manager.js:543:1)
    at Object.evaluate (runtime.js:2676:1)
    at Object.evaluate (runtime.js:1052:1)
    at It.evaluateSyscall (runtime.js:4204:1)
    at It.evaluateInner (runtime.js:4175:1)
    at It.evaluateOuter (runtime.js:4168:1)
    at Wt.next (runtime.js:4999:1)
    at Wt._execute (runtime.js:4986:1)
    at Wt.execute (runtime.js:4979:1)
    at $t.insertItem (runtime.js:4468:1)
    at $t.sync (runtime.js:4429:1)
    at $t.evaluate (runtime.js:4366:1)
    at Dt._execute (runtime.js:4247:1)
    at Dt.execute (runtime.js:4232:1)
    at qt.rerender (runtime.js:4547:1)
    at hr.render (index.js:4674:1)
    at index.js:4934:1
    at Nt (runtime.js:4080:1)
    at gr._renderRoots (index.js:4916:1)
    at gr._renderRootsTransaction (index.js:4960:1)
    at gr._revalidate (index.js:4992:1)
    at invoke (backburner.js.js:280:1)
    at h.flush (backburner.js.js:197:1)
    at p.flush (backburner.js.js:358:1)
    at B._end (backburner.js.js:798:1)
    at B.end (backburner.js.js:589:1)
    at B._run (backburner.js.js:842:1)
    at B._join (backburner.js.js:819:1)
    at B.join (backburner.js.js:629:1)
    at Array.<anonymous> (index.js:4765:1)
    at B._trigger (backburner.js.js:896:1)
    at B._end (backburner.js.js:811:1)
    at B._boundAutorunEnd (backburner.js.js:523:1)

```

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [June 4, 2024, 10:53pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/27 "2024-06-04T22:53:33Z")

</div>

Same problem here

To reproduce: click on a category + F5

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [June 5, 2024, 10:24pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/28 "2024-06-05T22:24:27Z")

</div>

I’ve just made some updates that should fix this

---

<div class="post-metadata">

### Author: ![Arnold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arnold/32/389492_2.png) [@Arnold](https://meta.discourse.org/u/Arnold)
#### Post date: [June 6, 2024, 3:14pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/29 "2024-06-06T15:14:56Z")

</div>

Thank you so much for fixing!

Could you consider to add an option to apply sidebar sorting order to the header categories navbar? This would bring the chance that users can apply their own choices to the header categories navbar.

---

<div class="post-metadata">

### Author: ![eisammy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eisammy/32/528804_2.png) [@eisammy](https://meta.discourse.org/u/eisammy)
#### Post date: [June 12, 2024, 3:25am UTC](https://meta.discourse.org/t/header-categories-navbar/249179/30 "2024-06-12T03:25:13Z")

</div>

This is helpful but doesn’t work anymore, try this

```plaintext
html:not(.has-full-page-chat) .d-header:has(.horizontal-overflow-nav) {
    height: 5em !important;
}

```

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [July 26, 2024, 9:53am UTC](https://meta.discourse.org/t/header-categories-navbar/249179/31 "2024-07-26T09:53:47Z")

</div>

> [@Discourse](#):
>
> Preview on Theme Creator

Getting a “page not found” on the preview link in first post

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [July 26, 2024, 10:45am UTC](https://meta.discourse.org/t/header-categories-navbar/249179/32 "2024-07-26T10:45:24Z")

</div>

Ah, sorry about that. Try it again now. 👍

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 24, 2025, 10:12am UTC](https://meta.discourse.org/t/header-categories-navbar/249179/33 "2025-03-24T10:12:15Z")

</div>

Is it possible to have the navbar included in the header next to the logo if you just have a few categories?

Best regards  
Olle

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 25, 2025, 7:25am UTC](https://meta.discourse.org/t/header-categories-navbar/249179/34 "2025-03-25T07:25:57Z")

</div>

That is helpful. Thank you.

I wonder if it is possible to center the navbar on the web site?

Is it possible to include the navbar in the header where the logo is?

I also wonder if it is possible to hide the navbar on the /login and /signup page because it appears there even when there is no header here

Best regards  
Olle

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [January 14, 2026, 3:03am UTC](https://meta.discourse.org/t/header-categories-navbar/249179/35 "2026-01-14T03:03:53Z")

</div>

How to change the display position to the bottom of the header?

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [January 14, 2026, 7:37am UTC](https://meta.discourse.org/t/header-categories-navbar/249179/36 "2026-01-14T07:37:41Z")

</div>

Isn’t it already at the bottom of the header? If I’m misunderstanding, perhaps you can fork it and change the plugin outlet of the component.

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [January 14, 2026, 8:56am UTC](https://meta.discourse.org/t/header-categories-navbar/249179/37 "2026-01-14T08:56:52Z")

</div>

I mean under the `<header class="d-header">`

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [February 12, 2026, 1:13pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/38 "2026-02-12T13:13:30Z")

</div>

The most comfortable and usable navigation system has disappeared after quite recently upgradeing 😱

Is there any chance to get it back?

And no, I don’t know if the console shows some errors, because I use iPad nowadays.

Edit:

I was too hasty. The issue came from plugin `https://github.com/thoka/discourse-reach-and-rights`

Sorry the noise I generated.

---

<div class="post-metadata">

### Author: ![stephtara](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephtara/32/517827_2.png) [@stephtara](https://meta.discourse.org/u/stephtara)
#### Post date: [February 15, 2026, 1:22pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/40 "2026-02-15T13:22:58Z")

</div>

Is there a way for this (or is there another component) to display subcategories in menu drop-downs when they exist?

[Previous page](https://meta.discourse.org/t/header-categories-navbar/249179.md?page=1)
