# 带主题的“转换”按钮的作用是什么？

**URL:** <https://meta.discourse.org/t/what-is-the-purpose-of-the-convert-button-with-themes/151073>\
**Category:** Support\
**Created:** [2020年五月10日 21:49 UTC](https://meta.discourse.org/t/what-is-the-purpose-of-the-convert-button-with-themes/151073 "2020-05-10T21:49:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)\
**Post date:** [2020年五月10日 21:49 UTC](https://meta.discourse.org/t/what-is-the-purpose-of-the-convert-button-with-themes/151073/1 "2020-05-10T21:49:33Z")

</div>

有人能解释一下这个“转换”按钮是做什么的吗？谢谢！它是用来做什么的？

> 转换 - _将此组件转换为主题_

---

<div class="post-metadata">

**Author:** ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)\
**Post date:** [2020年五月11日 17:45 UTC](https://meta.discourse.org/t/what-is-the-purpose-of-the-convert-button-with-themes/151073/2 "2020-05-11T17:45:16Z")

</div>

“转换”按钮同时出现在主题和组件页面中。它允许您通过管理界面将主题转换为组件，或将组件转换为主题。大多数 Discourse 管理员可能永远不会需要使用此功能。在 #Customization > Theme 中找到的主题和组件已经包含了正确的标识。

这应该在我们的 [Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) 中有所涵盖，但基本概念是：

- **主题** 被视为 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:** [2024年七月17日 18:37 UTC](https://meta.discourse.org/t/what-is-the-purpose-of-the-convert-button-with-themes/151073/3 "2024-07-17T18:37:03Z")

</div>



---

<div class="post-metadata">

**Author:** ![Westcan](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@Westcan](https://meta.discourse.org/u/Westcan)\
**Post date:** [2024年七月22日 16:15 UTC](https://meta.discourse.org/t/what-is-the-purpose-of-the-convert-button-with-themes/151073/4 "2024-07-22T16:15:44Z")

</div>

上面的解释和指南很棒。我点击了“转换组件为主题”，但不知道该函数的作用——有什么方法可以撤销它吗？或者您必须删除组件并重新安装？

---

<div class="post-metadata">

**Author:** ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)\
**Post date:** [2024年七月22日 17:11 UTC](https://meta.discourse.org/t/what-is-the-purpose-of-the-convert-button-with-themes/151073/5 "2024-07-22T17:11:04Z")

</div>

如上所述，转换按钮同时出现在主题和组件上。因此，您只需将组件转换回主题即可。
