# 在头部显示特定组成员的自定义HTML

**URL:** <https://meta.discourse.org/t/show-custom-html-in-header-to-member-of-a-specific-group/142974>\
**Category:** Development\
**Created:** [2020 年2 月 29 日 17:39 UTC](https://meta.discourse.org/t/show-custom-html-in-header-to-member-of-a-specific-group/142974 "2020-02-29T17:39:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)\
**Post date:** [2020 年2 月 29 日 17:39 UTC](https://meta.discourse.org/t/show-custom-html-in-header-to-member-of-a-specific-group/142974/1 "2020-02-29T17:39:46Z")

</div>

大家好，Discourse 社区的朋友们！希望这个问题有简单的解决方案！我觉得答案可能是需要用到一些 JavaScript。

我们在管理 CSS/HTML 设置的“标题之后”部分有 4 个按钮。

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/a/5a34ca3c09bda11bccb559b82120711b394b5274.png)

我们希望某些按钮仅对特定组的成员可见，而其余按钮对所有用户可见。

例如：假设我们希望那 4 个主按钮对所有人都可见，但希望另一个按钮仅对某个特定 GROUP 的成员可见。

我不懂 JavaScript，如果这很简单，并且有人能提供一段代码示例或其他帮助，那将非常感激 🙏

---

_[View the full topic](https://meta.discourse.org/t/show-custom-html-in-header-to-member-of-a-specific-group/142974)._
