# 在 Graceful 主题中找不到 CSS/HTML

**URL:** <https://meta.discourse.org/t/can-t-find-css-html-on-graceful-theme/177452>\
**Category:** Support\
**Created:** [2021年一月27日 16:17 UTC](https://meta.discourse.org/t/can-t-find-css-html-on-graceful-theme/177452 "2021-01-27T16:17:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![salamandea](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/salamandea/32/203419_2.png) [@salamandea](https://meta.discourse.org/u/salamandea)\
**Post date:** [2021年一月27日 16:17 UTC](https://meta.discourse.org/t/can-t-find-css-html-on-graceful-theme/177452/1 "2021-01-27T16:17:26Z")

</div>

你好！

我已安装了出色的 Graceful 主题。在非活动的主主题下，我在“包含的组件”部分下方看到了“自定义 CSS/HTML”区域。

然而，在启用的 Graceful 主题中，我却找不到自定义 CSS/HTML 区域。

如果有人能指点一下方向，我将不胜感激。

谢谢！

---

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [2021年一月27日 16:23 UTC](https://meta.discourse.org/t/can-t-find-css-html-on-graceful-theme/177452/2 "2021-01-27T16:23:07Z")

</div>

是的，这是因为您安装的主题来自 Git 仓库，而我们不再允许编辑来自 Git 仓库（或远程主题）的主题的 CSS/HTML。

您可以创建一个新的空主题组件，将其添加到 Graceful 主题中，然后在那里进行 CSS/HTML 修改。

步骤如下：在主题概览页面点击 **安装** ，然后点击 **+ 创建新项** ，为其命名，将类型更改为 **组件** ，接着点击 **创建** 。在下一个界面中，将 **Graceful** 添加到 **在此主题中包含组件** 设置中，点击 ✅。此后，您为该新组件添加的 CSS 将适用于使用 Graceful 主题的用户。

---

<div class="post-metadata">

**Author:** ![salamandea](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/salamandea/32/203419_2.png) [@salamandea](https://meta.discourse.org/u/salamandea)\
**Post date:** [2021年一月28日 10:35 UTC](https://meta.discourse.org/t/can-t-find-css-html-on-graceful-theme/177452/3 "2021-01-28T10:35:54Z")

</div>

非常感谢详细的说明。成功了！👌

---

<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:** [2021年二月27日 10:36 UTC](https://meta.discourse.org/t/can-t-find-css-html-on-graceful-theme/177452/4 "2021-02-27T10:36:49Z")

</div>

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