# Category specific Disclaimer

**URL:** <https://meta.discourse.org/t/category-specific-disclaimer/263168>\
**Category:** Development\
**Created:** [April 28, 2023, 10:24am UTC](https://meta.discourse.org/t/category-specific-disclaimer/263168 "2023-04-28T10:24:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nstoecki42](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nstoecki42/32/75218_2.png) [@nstoecki42](https://meta.discourse.org/u/nstoecki42)\
**Post date:** [May 2, 2023, 8:49am UTC](https://meta.discourse.org/t/category-specific-disclaimer/263168/4 "2023-05-02T08:49:00Z")

</div>

Thanks @Arkshine, that helpt a lot!

I used the following Code due to I want to display the Text above all like the other, mentioned banners.

```plaintext
api.decorateWidget('post:before', (helper, args) => {
    if (helper.widget.model.topic.category_id === 51) {
        return helper.h("div.disclaimer", settings.MY_DISCLAIMER)
    }
});

```

Greetings!

---

_[View the full topic](https://meta.discourse.org/t/category-specific-disclaimer/263168)._
