# 我们如何在编辑窗口中隐藏或灰色显示上传图标？我们已禁用上传

**URL:** <https://meta.discourse.org/t/how-can-we-either-hide-or-grey-out-the-upload-icon-in-the-edit-window-we-have-uploading-disabled/378051>\
**Category:** UX\
**Created:** [2025年八月10日 15:48 UTC](https://meta.discourse.org/t/how-can-we-either-hide-or-grey-out-the-upload-icon-in-the-edit-window-we-have-uploading-disabled/378051 "2025-08-10T15:48:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![What\_Exit](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/what_exit/32/231134_2.png) [@What\_Exit](https://meta.discourse.org/u/What_Exit)\
**Post date:** [2025年八月10日 15:48 UTC](https://meta.discourse.org/t/how-can-we-either-hide-or-grey-out-the-upload-icon-in-the-edit-window-we-have-uploading-disabled/378051/1 "2025-08-10T15:48:13Z")

</div>

我们如何在“编辑”窗口中隐藏或灰色显示上传图标？

我们已禁用上传。

我希望管理面板中有一个选项供我们的管理员使用。

我是 [https://boards.straightdope.com/](https://boards.straightdope.com/) 的版主。

提前感谢。

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2025年八月10日 16:51 UTC](https://meta.discourse.org/t/how-can-we-either-hide-or-grey-out-the-upload-icon-in-the-edit-window-we-have-uploading-disabled/378051/2 "2025-08-10T16:51:17Z")

</div>

> [@What\_Exit](#):
>
> 我们已禁用上传。

您是怎么做到的？我认为当所有文件类型都从 `authorized extensions` 站点设置中移除时，该按钮会自动隐藏。

---

<div class="post-metadata">

**Author:** ![What\_Exit](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/what_exit/32/231134_2.png) [@What\_Exit](https://meta.discourse.org/u/What_Exit)\
**Post date:** [2025年八月10日 17:14 UTC](https://meta.discourse.org/t/how-can-we-either-hide-or-grey-out-the-upload-icon-in-the-edit-window-we-have-uploading-disabled/378051/3 "2025-08-10T17:14:23Z")

</div>

我得问一下，我看不到设置。2020年设置这个的管理员已不幸离职。

我猜那是隐藏它的唯一方法了？

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2025年八月10日 17:21 UTC](https://meta.discourse.org/t/how-can-we-either-hide-or-grey-out-the-upload-icon-in-the-edit-window-we-have-uploading-disabled/378051/4 "2025-08-10T17:21:16Z")

</div>

不，还有其他方法。例如，您可以使用 CSS 隐藏它 ([Making custom CSS changes on your site](https://meta.discourse.org/t/making-custom-css-changes-on-your-site/168101))。

---

<div class="post-metadata">

**Author:** ![Kartoon](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@Kartoon](https://meta.discourse.org/u/Kartoon)\
**Post date:** [2025年八月10日 20:40 UTC](https://meta.discourse.org/t/how-can-we-either-hide-or-grey-out-the-upload-icon-in-the-edit-window-we-have-uploading-disabled/378051/5 "2025-08-10T20:40:07Z")

</div>

这是我隐藏“居中”按钮的方法

`button.center_ui_button.toolbar__button {`  
`display: none !important;`  
`}`

斜体

`button.italic.toolbar__button {`  
`display: none !important;`  
`}`

所以你只需要在控制台中找到上传按钮的名称，替换上面的内容，然后将其放入你主题的通用 CSS 中

---

<div class="post-metadata">

**Author:** ![What\_Exit](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/what_exit/32/231134_2.png) [@What\_Exit](https://meta.discourse.org/u/What_Exit)\
**Post date:** [2025年八月11日 17:40 UTC](https://meta.discourse.org/t/how-can-we-either-hide-or-grey-out-the-upload-icon-in-the-edit-window-we-have-uploading-disabled/378051/6 "2025-08-11T17:40:03Z")

</div>

谢谢，我会转达的。
