# 如何更改注册按钮的颜色

**URL:** <https://meta.discourse.org/t/how-to-change-color-of-the-sign-up-button/210640>\
**Category:** Product Support\
**Created:** [2021 年12 月 1 日 06:24 UTC](https://meta.discourse.org/t/how-to-change-color-of-the-sign-up-button/210640 "2021-12-01T06:24:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)\
发布日期： [2021 年12 月 1 日 14:27 UTC](https://meta.discourse.org/t/how-to-change-color-of-the-sign-up-button/210640/2 "2021-12-01T14:27:33Z")

</div>

您好！

我不确定您在托管论坛上拥有哪些选项，但我假设您在管理员面板中有“自定义”部分。

在您的主题中，编辑 CSS/HTML，然后在“通用”中添加此内容：

```css
.d-header .sign-up-button {
    background: #48bb6a;
}

```

如果不起作用，您可能需要添加 `!important` 以确保此颜色具有优先权，如下所示：

```css
.d-header .sign-up-button {
    background: #48bb6a !important;
}

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-color-of-the-sign-up-button/210640)._
