# 如何从自定义主题覆盖 site-header.hbs 文件？

**URL:** <https://meta.discourse.org/t/how-to-override-the-site-header-hbs-file-from-custom-theme/318065>\
**Category:** Development\
**Created:** [2024年七月24日 09:15 UTC](https://meta.discourse.org/t/how-to-override-the-site-header-hbs-file-from-custom-theme/318065 "2024-07-24T09:15:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2024年七月24日 12:07 UTC](https://meta.discourse.org/t/how-to-override-the-site-header-hbs-file-from-custom-theme/318065/4 "2024-07-24T12:07:06Z")

</div>

主题中的插件插口已更新。请参阅 [Using Plugin Outlet Connectors from a Theme or Plugin](https://meta.discourse.org/t/using-plugin-outlet-connectors-from-a-theme-or-plugin/32727)

> [@aslangm](#):
>
> 有没有其他更安全的方法可以使用自定义主题来实现这一点？

是的。您想做什么？

---

_[View the full topic](https://meta.discourse.org/t/how-to-override-the-site-header-hbs-file-from-custom-theme/318065)._
