# 试图在类别顶部添加类似标题的内容

**URL:** <https://meta.discourse.org/t/trying-to-add-something-like-a-heading-on-top-of-a-category/84969>\
**Category:** Support\
**Created:** [2018年四月10日 12:04 UTC](https://meta.discourse.org/t/trying-to-add-something-like-a-heading-on-top-of-a-category/84969 "2018-04-10T12:04:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Daniel\_Nevoigt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_nevoigt/32/92920_2.png) [@Daniel\_Nevoigt](https://meta.discourse.org/u/Daniel_Nevoigt)\
**Post date:** [2018年四月11日 11:19 UTC](https://meta.discourse.org/t/trying-to-add-something-like-a-heading-on-top-of-a-category/84969/2 "2018-04-11T11:19:46Z")

</div>

Ok, to solve that question:

> [@\[newbie\] Trouble adding script to dynamically change CSS values based on conditions](https://meta.discourse.org/t/newbie-trouble-adding-script-to-dynamically-change-css-values-based-on-conditions/51386/5):
>
> That isn’t how you’d do it there. To do it there, you’d have to do something like \<script type="text/discourse-plugin" version="0.4"\> api.onPageChange((url, title) =\> { alert('test'); }); \</script\> My original post was from a plugin perspective.

Thanks to @cpradio

---

_[View the full topic](https://meta.discourse.org/t/trying-to-add-something-like-a-heading-on-top-of-a-category/84969)._
