# 如何移除注册按钮？

**URL:** https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935
**Category:** Support
**Created:** [2020年七月16日 14:05 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935 "2020-07-16T14:05:06Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Aiden12114](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aiden12114/32/177928_2.png) [@Aiden12114](https://meta.discourse.org/u/Aiden12114)
#### Post date: [2020年七月16日 14:05 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/1 "2020-07-16T14:05:06Z")

</div>

我一直在想如何移除注册按钮，因为我的会员容易在注册和登录之间感到困惑。问题是，系统使用 Discord 进行登录，因此“登录”更为合适。

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2020年七月16日 14:36 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/2 "2020-07-16T14:36:20Z")

</div>

我认为你应该在 管理 \> 设置 \> 登录 下关闭 `本地登录` 选项。

你的管理员账户必须能够通过 Discord 进行身份验证，否则可能会失去访问权限。

---

<div class="post-metadata">

### Author: ![Aiden12114](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aiden12114/32/177928_2.png) [@Aiden12114](https://meta.discourse.org/u/Aiden12114)
#### Post date: [2020年七月16日 15:25 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/3 "2020-07-16T15:25:26Z")

</div>

我已经这样做了，但我想移除顶部导航栏上的注册按钮。

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2020年七月16日 17:44 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/4 "2020-07-16T17:44:28Z")

</div>

如果这不起作用，您可以通过 CSS 隐藏该按钮。

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2020年七月16日 18:15 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/5 "2020-07-16T18:15:16Z")

</div>

更改该选项后，您刷新过页面吗？除非出现了回归问题，否则据我所知，重新加载后它应该会消失。

---

<div class="post-metadata">

### Author: ![Aiden12114](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aiden12114/32/177928_2.png) [@Aiden12114](https://meta.discourse.org/u/Aiden12114)
#### Post date: [2020年八月5日 09:46 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/6 "2020-08-05T09:46:09Z")

</div>

抱歉回复这么晚！我该如何用 CSS 移除它？

---

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [2020年八月5日 11:44 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/7 "2020-08-05T11:44:04Z")

</div>

嘿 @Aiden12114

这样对你有效吗？

```plaintext
button.sign-up-button{
  display:none;
} 

```

希望这能帮到你。

 ![Screen Shot 2020-08-05 at 6.46.58 PM](https://global.discourse-cdn.com/meta/original/3X/5/1/51a0fba6aa4ed7c7332eae2eb15cf84daeedc9cb.jpeg)

---

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [2020年八月6日 13:17 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/9 "2020-08-06T13:17:43Z")

</div>

亲爱的 @londonstuff.meli，

从我这边测试，将其放入桌面 CSS 模板区域后运行正常：

 ![Screen Shot 2020-08-06 at 8.16.12 PM](https://global.discourse-cdn.com/meta/original/3X/2/c/2c71d972c22fe791e34667a31920533db7649c9a.jpeg)

 ![Screen Shot 2020-08-06 at 8.25.43 PM](https://global.discourse-cdn.com/meta/original/3X/5/d/5d9d32b224cca848197f155eaa3d4ab1810f139c.jpeg)

希望这能帮到你。

---

<div class="post-metadata">

### Author: ![londonstuff.meli](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@londonstuff.meli](https://meta.discourse.org/u/londonstuff.meli)
#### Post date: [2020年八月6日 14:23 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/10 "2020-08-06T14:23:41Z")

</div>

嗯，我意识到自己犯了一个错误。不过还是谢谢你 🙂

---

<div class="post-metadata">

### Author: ![Aiden12114](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aiden12114/32/177928_2.png) [@Aiden12114](https://meta.discourse.org/u/Aiden12114)
#### Post date: [2020年八月7日 07:57 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/11 "2020-08-07T07:57:12Z")

</div>

> [@neounix](#):
>
> ```plaintext
> button.sign-up-button{
> display:none;
> } 
> 
> ```

谢谢！成功了！非常感谢！

---

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [2020年八月7日 09:06 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/12 "2020-08-07T09:06:14Z")

</div>

> [@Aiden12114](#):
>
> 谢谢！成功了！太感谢了！

你好 @Aiden12114

很高兴听到你解决了问题。

我完全理解你的感受，因为我至今还在为编写 Discourse 插件的 Ruby on Rails 部分（控制器、模型和视图）而绞尽脑汁。

让我们一步步一起攀登 Discourse 知识的高峰！

---

<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: [2020年九月6日 09:06 UTC](https://meta.discourse.org/t/how-to-remove-the-sign-up-button/157935/13 "2020-09-06T09:06:20Z")

</div>

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