# Versuchen, eine Überschrift oben auf einer Kategorie hinzuzufügen

**URL:** <https://meta.discourse.org/t/trying-to-add-something-like-a-heading-on-top-of-a-category/84969>\
**Category:** Product Support\
**Created:** [10. April 2018 um 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:** 1

<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:** [10. April 2018 um 12:04 UTC](https://meta.discourse.org/t/trying-to-add-something-like-a-heading-on-top-of-a-category/84969/1 "2018-04-10T12:04:41Z")

</div>

Hello all,

I am trying to set a heading for different groups of forum categories I have. Perhaps someone can point me to the right direction. I was trying to use jquery method but I get stuck with only loaded the heading-element when page load is ready what results the heading only shown once on homepage, when returning the element disappeared. Second way I get stuck with elements loading multiple times 😄

Let me break it for you:

I am using that function to add the element:

`$('tr[data-category-id="9"]').before ('<tr><td class="category" style="border-color: #F37022;">My Heading</td><td class="topics"></td><td class="latest"></td></tr>');`

So, inside document ready function is the first scenario, works well, but when browsing the forum and than going back to start page, the element is gone.

When doing the following, the element loads multiple times:

```
function OnLoad (){
    $('tr[data-category-id="9"]').before ('<tr><td class="category" style="border-color: #F37022;">Eve Online</td><td class="topics"></td><td class="latest"></td></tr>');
}
$(document).ajaxComplete(function () {
    OnLoad();
});

```

Perhaps someone knows what to do, that would be great 🙂

Cheers, Daniel

---

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