# 更换主题后，主横幅没有出现

**URL:** https://meta.discourse.org/t/main-banner-doesnt-appear-when-theme-was-changed/178099
**Category:** Support
**Created:** [2021年二月2日 12:23 UTC](https://meta.discourse.org/t/main-banner-doesnt-appear-when-theme-was-changed/178099 "2021-02-02T12:23:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2021年二月2日 20:29 UTC](https://meta.discourse.org/t/main-banner-doesnt-appear-when-theme-was-changed/178099/2 "2021-02-02T20:29:10Z")

</div>

> [@Eduardo\_Henrique](#):
>
> 我们在所有页面的顶部有一个主横幅，它与当前主题关联。当我更改主题时，该横幅不再显示。

听起来该横幅是通过主题添加的。这意味着当您更换主题时，横幅将会消失。与其直接将横幅添加到您的主题中，不如创建一个用于横幅的主题组件，然后将该组件添加到您网站上的所有主题中。

您可以在本主题开头找到更多详细信息：[Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966#heading--1%E3%80%82)

---

_[View the full topic](https://meta.discourse.org/t/main-banner-doesnt-appear-when-theme-was-changed/178099)._
