# Theming: Custom CSS

**URL:** <https://help.nextcloud.com/t/theming-custom-css/20134>\
**Category:** ℹ️ Support\
**Tags:** theming\
**Created:** [August 26, 2017, 1:45pm UTC](https://help.nextcloud.com/t/theming-custom-css/20134 "2017-08-26T13:45:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon99252149](https://help.nextcloud.com/letter_avatar/anon99252149/32/6_22734026db12803ebb3e059622ac3534.png) [@anon99252149](https://help.nextcloud.com/u/anon99252149)\
**Post date:** [August 26, 2017, 1:45pm UTC](https://help.nextcloud.com/t/theming-custom-css/20134/1 "2017-08-26T13:45:16Z")

</div>

A very cool app to hide items such as the _remember login_ checkbox or the _contacts menu_ – without editing the original CSS files.

Thanks @juliusknorr! 👍

[https://apps.nextcloud.com/apps/theming\_customcss](https://apps.nextcloud.com/apps/theming_customcss)  
[https://github.com/juliushaertl/theming\_customcss](https://github.com/juliushaertl/theming_customcss)

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [August 28, 2017, 6:44am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/2 "2017-08-28T06:44:09Z")

</div>

ya… i thought so, too. until i remebered that i can’t code in css ☹  
any examples for _like hiding contacts menu_ or _remember login_? or even _sign in without chat_?

---

<div class="post-metadata">

**Author:** ![anon99252149](https://help.nextcloud.com/letter_avatar/anon99252149/32/6_22734026db12803ebb3e059622ac3534.png) [@anon99252149](https://help.nextcloud.com/u/anon99252149)\
**Post date:** [August 28, 2017, 7:09am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/3 "2017-08-28T07:09:10Z")

</div>

> [@JimmyKater](#):
>
> any examples in like hiding contacts menu or remember login?

```auto
.remember-login-container {
	display: none;
}
#contactsmenu {
	display: none;
}

```

Disabling in `config.php` would of course be the better solution.

---

<div class="post-metadata">

**Author:** ![anon99252149](https://help.nextcloud.com/letter_avatar/anon99252149/32/6_22734026db12803ebb3e059622ac3534.png) [@anon99252149](https://help.nextcloud.com/u/anon99252149)\
**Post date:** [August 28, 2017, 7:25am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/4 "2017-08-28T07:25:41Z")

</div>

> [@JimmyKater](#):
>
> sign in without chat?

Do you want this as default action?  
This should be dine with a setting in the app.

> **[ojsxc](https://help.nextcloud.com/c/apps/ojsxc/82)**
>
> This is where you can discuss the \<a href="https://apps.nextcloud.com/apps/ojsxc"\>XMPP chat app, ojsxc.\</a\>

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [August 28, 2017, 7:29am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/5 "2017-08-28T07:29:44Z")

</div>

@anon99252149

thanks for the hints. i wouldn’t have know any of those, myself.

as for the sign in without chat i’m gonna ask if yomeone has an idea about it… 🙂

---

<div class="post-metadata">

**Author:** ![gonzdi](https://help.nextcloud.com/letter_avatar/gonzdi/32/6_22734026db12803ebb3e059622ac3534.png) [@gonzdi](https://help.nextcloud.com/u/gonzdi)\
**Post date:** [October 22, 2020, 10:25am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/6 "2020-10-22T10:25:47Z")

</div>

> [@JimmyKater](#):
>
> the sign in without chat i’m

I am new using NextCloud and following the topic, I would like to hide/disable the “search menu” (header top right side next to contactsmenu) and “Files\>SETTINGS” menu (bottom left hand side) but only for Groups/users and not affecting the admin.

As per my above request, I am struggling to find out the right names to disable their icons in the CSS Custom app, so just wonder if there is any command or name list for all of them…much appreciated if you could point me in the right direction 🙂

Thank you very much for your attention and support.

---

<div class="post-metadata">

**Author:** ![swindhab](https://help.nextcloud.com/letter_avatar/swindhab/32/6_22734026db12803ebb3e059622ac3534.png) [@swindhab](https://help.nextcloud.com/u/swindhab)\
**Post date:** [October 23, 2020, 6:32pm UTC](https://help.nextcloud.com/t/theming-custom-css/20134/7 "2020-10-23T18:32:35Z")

</div>

@gonzdi the following should do the trick with the searchbutton:

```auto
#searchbox {
	display: none;
}

```

Not displaying the settings button in files app is way harder, because the simple way would hide the settings button of ALL apps, not only files.

If your users are in a nextcloud group, you an limit the customCSS app to this group in app administration.

You can see the needed class and id names in the source coude of the webite. You can view this in your browser.

But ATTENTION: The buttons will only be hidden. Someone with technical knowledge can make them visible and use them. It’s not possible to prohibit the use of a button via css.

---

<div class="post-metadata">

**Author:** ![swindhab](https://help.nextcloud.com/letter_avatar/swindhab/32/6_22734026db12803ebb3e059622ac3534.png) [@swindhab](https://help.nextcloud.com/u/swindhab)\
**Post date:** [October 23, 2020, 7:24pm UTC](https://help.nextcloud.com/t/theming-custom-css/20134/8 "2020-10-23T19:24:11Z")

</div>

Maybe this is your solution? You can enable the chat on login in preferences of the chat app and hide both buttons on login page.

> [@Remove "login with chat" and "login without chat" buttons settings](https://help.nextcloud.com/t/remove-login-with-chat-and-login-without-chat-buttons-settings/79676/5):
>
> Hi. I was trying to find a way to do this and I would like to describe the solution found based on the last suggestion. According with this method, you can hide the buttons by override the CSS. To do this you can install an app called “Custom CSS” and add a specific CSS code to hide the buttons in custom settings. So: Install “Custom CSS” app: [https://apps.nextcloud.com/apps/theming\_customcss](https://apps.nextcloud.com/apps/theming_customcss) Go to the Configuration/Theming options and find the configuration of Custom CSS . Add thi…

---

<div class="post-metadata">

**Author:** ![gonzdi](https://help.nextcloud.com/letter_avatar/gonzdi/32/6_22734026db12803ebb3e059622ac3534.png) [@gonzdi](https://help.nextcloud.com/u/gonzdi)\
**Post date:** [October 24, 2020, 11:39am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/9 "2020-10-24T11:39:21Z")

</div>

> [@swindhab](#):
>
> limit t

Hi Swindhab,  
beforehand, thank you very much for taking your time to answer my doubts.

I am trying the code lines to disable the searchbox, but it is not working, as the search icon is still showing in the bar menu. Any alternative suggestion?.

Moreover, definitely, I will dive in properly in the option you are propossing to disable the settings menu.

Thank you very much for your attention and have a nice weekend.

---

<div class="post-metadata">

**Author:** ![swindhab](https://help.nextcloud.com/letter_avatar/swindhab/32/6_22734026db12803ebb3e059622ac3534.png) [@swindhab](https://help.nextcloud.com/u/swindhab)\
**Post date:** [October 25, 2020, 10:45am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/10 "2020-10-25T10:45:05Z")

</div>

Sorry, the code I posted was not right. Take this and it should work (will hide not the id but the class searchbox. Difference is the . instead of the #):

```auto
.searchbox {
	display: none;
}

```

---

<div class="post-metadata">

**Author:** ![dinosm1](https://help.nextcloud.com/letter_avatar/dinosm1/32/6_22734026db12803ebb3e059622ac3534.png) [@dinosm1](https://help.nextcloud.com/u/dinosm1)\
**Post date:** [October 25, 2020, 11:06am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/11 "2020-10-25T11:06:24Z")

</div>

Any idea why Custom CSS is not working for me? I tried changing the header image, but the CSS I entered wasn’t being picked up.  
I had to edit the server.scss file directly for it to be picked up.

---

<div class="post-metadata">

**Author:** ![gonzdi](https://help.nextcloud.com/letter_avatar/gonzdi/32/6_22734026db12803ebb3e059622ac3534.png) [@gonzdi](https://help.nextcloud.com/u/gonzdi)\
**Post date:** [October 25, 2020, 11:55am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/12 "2020-10-25T11:55:13Z")

</div>

Hi Swindhab,

thanks for your post. However, it´s still showing the searching box, even though I have tried both options:

.searchbox {  
display: none;  
}

and also

.searchbox {  
display: none !important;  
}

any other idea to disable this one?.

Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![swindhab](https://help.nextcloud.com/letter_avatar/swindhab/32/6_22734026db12803ebb3e059622ac3534.png) [@swindhab](https://help.nextcloud.com/u/swindhab)\
**Post date:** [October 25, 2020, 12:31pm UTC](https://help.nextcloud.com/t/theming-custom-css/20134/13 "2020-10-25T12:31:44Z")

</div>

What is the version of your nextcloud? Is the customCSS plugin woking in general? Did you save the changes und reload the website? Is the use of the plugin limited to a specific usergroup?

This should hide the settings button in the menu on the left side (for ALL apps, not only files app)

```auto
#app-settings {
display: none;
}

```

---

<div class="post-metadata">

**Author:** ![gonzdi](https://help.nextcloud.com/letter_avatar/gonzdi/32/6_22734026db12803ebb3e059622ac3534.png) [@gonzdi](https://help.nextcloud.com/u/gonzdi)\
**Post date:** [October 26, 2020, 2:58pm UTC](https://help.nextcloud.com/t/theming-custom-css/20134/14 "2020-10-26T14:58:03Z")

</div>

> [@gonzdi](#):
>
> s for your post. However, it´s still showing the searching box, even though I have tried both options:

Hi Swindhab,

finally I have got all of them hidden, so thank you very much for your support.  
However, I am trying to remove/hide from the CSS the header-right “settings” menu button without remove the “logout” one, as I do not want the user to access to the settings option but still be able to logout from their session. I have tried different options from the Custom CSS app, but they are

-

---

<div class="post-metadata">

**Author:** ![swindhab](https://help.nextcloud.com/letter_avatar/swindhab/32/6_22734026db12803ebb3e059622ac3534.png) [@swindhab](https://help.nextcloud.com/u/swindhab)\
**Post date:** [October 26, 2020, 3:42pm UTC](https://help.nextcloud.com/t/theming-custom-css/20134/15 "2020-10-26T15:42:33Z")

</div>

You mean like this?

```auto
li[data-id="settings"] {
display: none;
}

```

---

<div class="post-metadata">

**Author:** ![gonzdi](https://help.nextcloud.com/letter_avatar/gonzdi/32/6_22734026db12803ebb3e059622ac3534.png) [@gonzdi](https://help.nextcloud.com/u/gonzdi)\
**Post date:** [October 26, 2020, 5:34pm UTC](https://help.nextcloud.com/t/theming-custom-css/20134/16 "2020-10-26T17:34:10Z")

</div>

Hi Swindhab,

it is working fine for specific items, however, when I try to remove the “settings\>sharing” item in the settings\>personal left hand menu option, it is a

- option but does not work:  
 ![image](https://help.nextcloud.com/uploads/default/original/3X/c/8/c88490810b8092b18aae42da1d4950d24ff269e2.png)

Please, can you advice?.  
Thank you very much for your full support and attention.

Kind regards.

---

<div class="post-metadata">

**Author:** ![swindhab](https://help.nextcloud.com/letter_avatar/swindhab/32/6_22734026db12803ebb3e059622ac3534.png) [@swindhab](https://help.nextcloud.com/u/swindhab)\
**Post date:** [October 27, 2020, 2:44pm UTC](https://help.nextcloud.com/t/theming-custom-css/20134/17 "2020-10-27T14:44:03Z")

</div>

I don’t get what you mean with a “\*” option?? Maybe you want to make a list what to hide (with screenshots?). Maybe I can help…  
For example I don’t understand what your picture should show me, as it is the code for “accessibility settings” and not “sharing settings” as you described in your text…

---

<div class="post-metadata">

**Author:** ![swindhab](https://help.nextcloud.com/letter_avatar/swindhab/32/6_22734026db12803ebb3e059622ac3534.png) [@swindhab](https://help.nextcloud.com/u/swindhab)\
**Post date:** [October 27, 2020, 2:50pm UTC](https://help.nextcloud.com/t/theming-custom-css/20134/18 "2020-10-27T14:50:45Z")

</div>

```auto
li a[href="/nextcloud/index.php/settings/user/sharing"] {
display: none !important;
}

```

---

<div class="post-metadata">

**Author:** ![gonzdi](https://help.nextcloud.com/letter_avatar/gonzdi/32/6_22734026db12803ebb3e059622ac3534.png) [@gonzdi](https://help.nextcloud.com/u/gonzdi)\
**Post date:** [October 29, 2020, 11:42am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/19 "2020-10-29T11:42:41Z")

</div>

Hi Steffen,

that´s exactly what I need to get everything properly customized!. Thank you very much for all your support and patience. Have a great day. Kind regards 🙂

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [October 29, 2020, 11:48am UTC](https://help.nextcloud.com/t/theming-custom-css/20134/20 "2020-10-29T11:48:49Z")

</div>

> [@gonzdi](#):
>
> Thank you very much

hint hint 😉 the currency you show your gratitude here on the forum is measured in ❤ - so why not just giving him a heart for every positive answer? _hint hint_

[Next page](https://help.nextcloud.com/t/theming-custom-css/20134.md?page=2)
