# 这段代码应该放在哪里用于顶部横幅？

**URL:** <https://meta.discourse.org/t/where-shall-i-put-this-code-for-a-top-banner/300496>\
**Category:** Support\
**Created:** [2024 年3 月 22 日 08:15 UTC](https://meta.discourse.org/t/where-shall-i-put-this-code-for-a-top-banner/300496 "2024-03-22T08:15:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Sherran](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sherran/32/267631_2.png) [@Sherran](https://meta.discourse.org/u/Sherran)\
发布日期： [2024 年3 月 22 日 08:15 UTC](https://meta.discourse.org/t/where-shall-i-put-this-code-for-a-top-banner/300496/1 "2024-03-22T08:15:51Z")

</div>

我有一个和这位老兄一样的问题：[How to add a header image and customize it](https://meta.discourse.org/t/how-to-add-a-header-image-and-customize-it/122242)

不知道该把这段代码放在哪里。有人能帮忙吗？

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/1/6/e169734ac4cd9a4c15534a036da2e4b47771f5fe.png)

我只是把它放在这里，看起来我弄错了。

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/7/a/67ad0d6418179f3dd5ac9e1160a415e35ca7289d.png)

或者有没有更简单的组件可以为我的 Discourse 添加一个横幅图片？

提前感谢。

---

_[View the full topic](https://meta.discourse.org/t/where-shall-i-put-this-code-for-a-top-banner/300496)._
