# How to make a global custom section collapse by default?

**URL:** https://meta.discourse.org/t/how-to-make-a-global-custom-section-collapse-by-default/358845
**Category:** Support
**Created:** [March 25, 2025, 11:27pm UTC](https://meta.discourse.org/t/how-to-make-a-global-custom-section-collapse-by-default/358845 "2025-03-25T23:27:50Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 26, 2025, 6:08am UTC](https://meta.discourse.org/t/how-to-make-a-global-custom-section-collapse-by-default/358845/3 "2025-03-26T06:08:00Z")

</div>

I have this TC I made a long time ago. I just quickly updated it to work with the latest version. Give it a try! EDIT: by default it collapses everything, you can define what section to ignore. Maybe I should add a section to choose what to collapse instead.

[https://github.com/Arkshine/discourse-collapsed-sidebar-sections-by-default](https://github.com/Arkshine/discourse-collapsed-sidebar-sections-by-default)

---

_[View the full topic](https://meta.discourse.org/t/how-to-make-a-global-custom-section-collapse-by-default/358845)._
