# האם ניתן להשבית את כפתור ה-'+ Section' בסרגל הצד עבור משתמשים שאינם אדמינים?

**URL:** https://meta.discourse.org/t/can-i-disable-the-section-button-in-the-sidebar-for-non-admins/282452
**Category:** Development
**Tags:** css, sidebar
**Created:** [16 באוקטובר,‏ 2023,‏ 9:23pm UTC](https://meta.discourse.org/t/can-i-disable-the-section-button-in-the-sidebar-for-non-admins/282452 "2023-10-16T21:23:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Jeff\_Gilmore](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_gilmore/32/211284_2.png) [@Jeff\_Gilmore](https://meta.discourse.org/u/Jeff_Gilmore)
#### Post date: [16 באוקטובר,‏ 2023,‏ 9:23pm UTC](https://meta.discourse.org/t/can-i-disable-the-section-button-in-the-sidebar-for-non-admins/282452/1 "2023-10-16T21:23:50Z")

</div>

I have been asked to do a number of simplifications of the Discourse interface.

One of these is to remove the + icon at the bottom of the sidebar (which is used to create new sections within the sidebar), preferably only for non-admins, but if necessary, for everyone.

Can anyone advise how to do that?

---

<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: [16 באוקטובר,‏ 2023,‏ 9:27pm UTC](https://meta.discourse.org/t/can-i-disable-the-section-button-in-the-sidebar-for-non-admins/282452/2 "2023-10-16T21:27:41Z")

</div>

You can use CSS to hide it:

In common css of a theme or theme component:

```scss
.sidebar-wrapper .sidebar-footer-wrapper .btn-flat.add-section {
    display: none;
}

```

If you want it to be available for staff-only, then you can do this:

```scss
.sidebar-wrapper .sidebar-footer-wrapper .btn-flat.add-section {
    display: none;
}
.staff .sidebar-wrapper .sidebar-footer-wrapper .btn-flat.add-section {
    display: inline;
}

```

---

<div class="post-metadata">

### Author: ![Jeff\_Gilmore](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_gilmore/32/211284_2.png) [@Jeff\_Gilmore](https://meta.discourse.org/u/Jeff_Gilmore)
#### Post date: [17 באוקטובר,‏ 2023,‏ 11:31pm UTC](https://meta.discourse.org/t/can-i-disable-the-section-button-in-the-sidebar-for-non-admins/282452/3 "2023-10-17T23:31:10Z")

</div>

Thanks so much Lilly! That looks perfect.

Can you point me in the right direction for how best to implement these kinds of css tweaks?

I’m using the Air theme which does not provide access to css overides (or at least I don’t know how it does), and I’m on a hosted Discourse account from Communiteq, so I don’t have any access to files in Docker.

I want to make these changes in a way that is the least likely to break with new Discourse or template releases.

So what would you recommend? Would it make sense to create a custom theme component for this particular customer with just a few bits of css? Or something else?

Thanks!

---

<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: [17 באוקטובר,‏ 2023,‏ 11:57pm UTC](https://meta.discourse.org/t/can-i-disable-the-section-button-in-the-sidebar-for-non-admins/282452/4 "2023-10-17T23:57:22Z")

</div>

Creating a theme component is the way to go!

1. Go to `Customize` → `Themes`

2. Click on the `Install` button.  

3. Select `+ Create New`

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

1. Enter a name and validate.

2. Now, you can include your component in the Air Theme, and you can `Edit CSS/HTML`!

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/f/4/3f41d106be65207b0a0cbb45e2cbeb489e4d86ea.png)

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

I hope that helps! 🙂

---

<div class="post-metadata">

### Author: ![Jeff\_Gilmore](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_gilmore/32/211284_2.png) [@Jeff\_Gilmore](https://meta.discourse.org/u/Jeff_Gilmore)
#### Post date: [20 באוקטובר,‏ 2023,‏ 7:07pm UTC](https://meta.discourse.org/t/can-i-disable-the-section-button-in-the-sidebar-for-non-admins/282452/5 "2023-10-20T19:07:37Z")

</div>

Thank you so much Lilly and Arkshine. That worked great. 😃

---

<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: [19 בנובמבר,‏ 2023,‏ 7:08pm UTC](https://meta.discourse.org/t/can-i-disable-the-section-button-in-the-sidebar-for-non-admins/282452/6 "2023-11-19T19:08:27Z")

</div>

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