# Sidebar verbergen op een selecte categorie

**URL:** https://meta.discourse.org/t/hide-sidebar-on-a-select-category/284301
**Category:** Development
**Tags:** sidebar
**Created:** [3 november 2023 om 06:45 UTC](https://meta.discourse.org/t/hide-sidebar-on-a-select-category/284301 "2023-11-03T06:45:04Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [3 november 2023 om 07:25 UTC](https://meta.discourse.org/t/hide-sidebar-on-a-select-category/284301/2 "2023-11-03T07:25:26Z")

</div>

I’d quite like to do that too.

This CSS should do that nicely.

Just fill in this field with your category slug and copy the code. Then drop it in the Desktop CSS of your Theme and voila!

(If you are targeting a subcategory, use a `parentslug-subcatslug` format)

```plaintext
// hides sidebar for the specified category
body.has-sidebar-page.category-=CategorySlug= {
    #main-outlet-wrapper {
        grid-template-columns: 0 minmax(0, 1fr);
        gap: 0;
        padding-left: 10px;
     }
     .wrap {
       max-width: var(--d-max-width);
     }
}

```

@Lilly - would this work as a feature of [Navigation (sidebar) menu display control](https://meta.discourse.org/t/navigation-sidebar-menu-display-control/277687)?

---

_[View the full topic](https://meta.discourse.org/t/hide-sidebar-on-a-select-category/284301)._
