# How can I remove categories from top menu

**URL:** https://meta.discourse.org/t/how-can-i-remove-categories-from-top-menu/308283
**Category:** Development
**Created:** [May 16, 2024, 3:30pm UTC](https://meta.discourse.org/t/how-can-i-remove-categories-from-top-menu/308283 "2024-05-16T15:30:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ogulcan1787](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ogulcan1787/32/128589_2.png) [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)
#### Post date: [May 16, 2024, 3:30pm UTC](https://meta.discourse.org/t/how-can-i-remove-categories-from-top-menu/308283/1 "2024-05-16T15:30:24Z")

</div>

Hi everyone.

 ![photo1](https://global.discourse-cdn.com/meta/original/4X/d/2/4/d2457f325ac2a7da31fb13efdeee1a3ba665b48c.png)

I removed with these codes.

```plaintext
.category-breadcrumb>li {
    margin-left: -.25em;
}

.select-kit.combo-box.category-drop .category-drop-header[data-value=""] {
    display: none;
}

```

But I saw a few mistakes.  
What should it be like? Or is it available as an option in the settings?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [May 16, 2024, 3:51pm UTC](https://meta.discourse.org/t/how-can-i-remove-categories-from-top-menu/308283/2 "2024-05-16T15:51:07Z")

</div>

Hi,

What do you mean by “saw few mistakes”? What is your actual issue?

---

<div class="post-metadata">

### Author: ![ogulcan1787](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ogulcan1787/32/128589_2.png) [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)
#### Post date: [May 16, 2024, 3:59pm UTC](https://meta.discourse.org/t/how-can-i-remove-categories-from-top-menu/308283/3 "2024-05-16T15:59:30Z")

</div>

While there are codes.

 ![Ekran görüntüsü 2024-05-16 185245](https://global.discourse-cdn.com/meta/original/4X/1/8/0/1802af63bef259e54da07f60eddfa04a694a4a6a.png)

While there are no codes.

 ![Ekran görüntüsü 2024-05-16 185258](https://global.discourse-cdn.com/meta/original/4X/6/0/f/60f30a9dffbb07c133c34239365145e7d62cf438.png)

There are minor image defects. I don’t like it this way.

---

<div class="post-metadata">

### Author: ![Alteras](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alteras/32/179824_2.png) [@Alteras](https://meta.discourse.org/u/Alteras)
#### Post date: [May 16, 2024, 10:12pm UTC](https://meta.discourse.org/t/how-can-i-remove-categories-from-top-menu/308283/4 "2024-05-16T22:12:28Z")

</div>

Sounds like you want the category dropdown in the top menu to be removed cleanly when there’s no category selected without affecting the other dropdowns?

You can try this

```css
ol.category-breadcrumb li:has(details.category-drop [data-value=""]) {
  display: none;
}

```

---

<div class="post-metadata">

### Author: ![ogulcan1787](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ogulcan1787/32/128589_2.png) [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)
#### Post date: [May 17, 2024, 7:32am UTC](https://meta.discourse.org/t/how-can-i-remove-categories-from-top-menu/308283/5 "2024-05-17T07:32:43Z")

</div>

Thank you, these codes work as I want. 🙏

---

<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: [June 16, 2024, 7:32am UTC](https://meta.discourse.org/t/how-can-i-remove-categories-from-top-menu/308283/6 "2024-06-16T07:32:50Z")

</div>

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