# Hide Category Breadcrumb from a specific category

**URL:** https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524
**Category:** Development
**Created:** [June 25, 2023, 1:42am UTC](https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524 "2023-06-25T01:42:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [June 25, 2023, 1:42am UTC](https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524/1 "2023-06-25T01:42:33Z")

</div>

How can I hide the entire Category Breadcrumb section from a specific category?

I want to hide this entire section:

 ![Screenshot 2023-06-24 214223](https://global.discourse-cdn.com/meta/original/4X/8/7/9/8799334ccc86ad15b1a816b0b355a40c4e86addb.jpeg)

I tried the following and it didn’t work:

```plaintext
body[class*='category-myCategorySlug-'] ol.category-breadcrumb li.tag-drop {
    display: none;
}

```

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [June 25, 2023, 2:38am UTC](https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524/2 "2023-06-25T02:38:56Z")

</div>

hi @Sami_Syed

those are the category breadcrumb dropdown and navigator bar (or nav bar).

to hide them, try this in common css:

```scss
.category-[category-slug] .category-breadcrumb,
.category-[category-slug] #navigation-bar {
    display: none;
}

```

if you want to include the navigation controls buttons as well (the admin wrench, new topic button and alerts button) you can do this:

```scss
.category-[category-slug] .navigation-container {
    display: none;
}

```

---

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [June 25, 2023, 6:30pm UTC](https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524/3 "2023-06-25T18:30:09Z")

</div>

> [@Lilly](#):
>
> ```plaintext
> .category-[category-slug] .category-breadcrumb,
> .category-[category-slug] #navigation-bar {
> display: none;
> }
> 
> ```

I tried this and it is not working.

 ![Screenshot 2023-06-25 142920](https://global.discourse-cdn.com/meta/original/4X/9/7/5/9751744ca9567ba3deebc451cf894d439461f0a5.jpeg)

Here is the URL to the category I am trying to remove it from. [https://vanlifesummit2.discoursehosting.net/c/van-life-summit/perks/6](https://vanlifesummit2.discoursehosting.net/c/van-life-summit/perks/6)

I have a separate theme component created, and it is active within the current theme.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [June 25, 2023, 6:38pm UTC](https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524/4 "2023-06-25T18:38:12Z")

</div>

oh it’s a sub-category. here you go:

```scss
.category-van-life-summit-perks .category-breadcrumb,
.category-van-life-summit-perks #navigation-bar {
    display: none;
}

```

separate category and subcategory slugs with a “-”

---

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [June 26, 2023, 12:19am UTC](https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524/5 "2023-06-26T00:19:29Z")

</div>

This worked. Thanks @Lilly

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [June 26, 2023, 1:20am UTC](https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524/6 "2023-06-26T01:20:00Z")

</div>

anytime 🙂 glad that helped.

---

<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: [July 26, 2023, 1:20am UTC](https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524/7 "2023-07-26T01:20:51Z")

</div>

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