# 如何隐藏主页上的新主题按钮？

**URL:** <https://meta.discourse.org/t/how-can-i-hide-the-new-topic-button-on-the-home-page/285409>\
**Category:** Development\
**Tags:** css\
**Created:** [2023年十一月14日 09:39 UTC](https://meta.discourse.org/t/how-can-i-hide-the-new-topic-button-on-the-home-page/285409 "2023-11-14T09:39:18Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2023年十一月14日 12:33 UTC](https://meta.discourse.org/t/how-can-i-hide-the-new-topic-button-on-the-home-page/285409/4 "2023-11-14T12:33:56Z")

</div>

此帖子中有一个代码片段可能有所帮助：

> [@Hide 'Create Topic' on home page?](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/11?u=jammydodger):
>
> You can use your browser’s Style Inspector. It shows that the declaration is overwritten by a more specific one on mobile: [Screenshot from 2021-04-07 18-57-16] So you can either use the more specific declaration for mobile yourself: body:not([class\*="category-"]) .list-controls .container #create-topic { display: none; } Or give your general declaration priority with the !important property: body:not([class\*="category-"]) #create-topic { display: none !important; }

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-hide-the-new-topic-button-on-the-home-page/285409)._
