# Un modo migliore per implementare codice jQuery personalizzato?

**URL:** <https://meta.discourse.org/t/a-better-way-to-implement-custom-jquery-code/180056>\
**Category:** Development\
**Created:** [17 Febbraio 2021, 3:18pm UTC](https://meta.discourse.org/t/a-better-way-to-implement-custom-jquery-code/180056 "2021-02-17T15:18:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cosdesign](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cosdesign/32/208585_2.png) [@cosdesign](https://meta.discourse.org/u/cosdesign)\
**Post date:** [17 Febbraio 2021, 4:57pm UTC](https://meta.discourse.org/t/a-better-way-to-implement-custom-jquery-code/180056/3 "2021-02-17T16:57:27Z")

</div>

Sì, penso di sì, ma nel frattempo ho trovato la soluzione. Il problema era che stavo usando `body.categories-list` invece di `body.navigation-categories`. `body.categories-list` viene utilizzato anche nelle pagine delle sottocategorie e, mentre mi trovavo su quelle pagine, il codice non funzionava affatto (non ho idea del perché).

Modifica: Lo stesso problema persiste, non funziona sempre.

---

_[View the full topic](https://meta.discourse.org/t/a-better-way-to-implement-custom-jquery-code/180056)._
