# 为多站点安装添加主题组件？

**URL:** https://meta.discourse.org/t/adding-a-theme-component-to-a-multisite-installation/185351
**Category:** Support
**Created:** [2021年四月3日 16:16 UTC](https://meta.discourse.org/t/adding-a-theme-component-to-a-multisite-installation/185351 "2021-04-03T16:16:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![stevegaarder](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@stevegaarder](https://meta.discourse.org/u/stevegaarder)
#### Post date: [2021年四月3日 16:16 UTC](https://meta.discourse.org/t/adding-a-theme-component-to-a-multisite-installation/185351/1 "2021-04-03T16:16:22Z")

</div>

我们有一个 Discourse 2.7.0 beta 5 的多站点、双容器安装环境。我想为其中一个站点添加“品牌页眉”主题组件。我是通过管理界面以常规方式添加它，还是应该在容器层面进行某些操作？如果该组件在所有站点上都可用也没关系，只要不会造成任何混乱。

谢谢，

Steve Gaarder

---

<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: [2021年四月3日 16:38 UTC](https://meta.discourse.org/t/adding-a-theme-component-to-a-multisite-installation/185351/2 "2021-04-03T16:38:20Z")

</div>

你好，

如果您想将其安装到一个站点，可以进入“管理 \> 自定义”进行操作。

> [@Installing a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682):
>
> bookmark This is a guide for installing and managing themes and theme components in Discourse. person_raising_hand Required user level: Administrator Installing and customizing themes can significantly improve the look and feel of your Discourse site. You can easily import and manage themes and their components through the Discourse admin panel. This guide covers: Importing new themes and theme components Adding theme components to a theme Managing automatic updates Additional resourc…

---

<div class="post-metadata">

### Author: ![stevegaarder](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@stevegaarder](https://meta.discourse.org/u/stevegaarder)
#### Post date: [2021年四月3日 18:12 UTC](https://meta.discourse.org/t/adding-a-theme-component-to-a-multisite-installation/185351/3 "2021-04-03T18:12:39Z")

</div>

谢谢。这会对其他网站产生任何影响吗？

Steve

---

<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: [2021年四月3日 18:26 UTC](https://meta.discourse.org/t/adding-a-theme-component-to-a-multisite-installation/185351/4 "2021-04-03T18:26:37Z")

</div>

如果您在一个网站上安装它，不会影响其他网站。

---

<div class="post-metadata">

### Author: ![ProjeDEV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/projedev/32/294219_2.png) [@ProjeDEV](https://meta.discourse.org/u/ProjeDEV)
#### Post date: [2023年二月12日 18:26 UTC](https://meta.discourse.org/t/adding-a-theme-component-to-a-multisite-installation/185351/6 "2023-02-12T18:26:20Z")

</div>

有没有办法通过一个基础的[程序化安装](https://meta.discourse.org/t/install-a-theme-programatically/191843?u=projedev)来影响所有其他站点？
