# Hiding Topics From Sub-Category

**URL:** https://meta.discourse.org/t/hiding-topics-from-sub-category/101720
**Category:** Support
**Created:** [November 10, 2018, 6:30am UTC](https://meta.discourse.org/t/hiding-topics-from-sub-category/101720 "2018-11-10T06:30:17Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![rishi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishi/32/233665_2.png) [@rishi](https://meta.discourse.org/u/rishi)
#### Post date: [October 7, 2021, 3:28pm UTC](https://meta.discourse.org/t/hiding-topics-from-sub-category/101720/7 "2021-10-07T15:28:43Z")

</div>

Yes, I was looking into defaulting to none as well,

Found this, but the solution seemed rather convoluted and didn’t work everywhere per the posters, could you please highlight if there’s a more straightforward solution?

> [@When in a category, default to "none" rather than "all" subcategories](https://meta.discourse.org/t/when-in-a-category-default-to-none-rather-than-all-subcategories/26173/4):
>
> Fixed it via JS. You have to add this code to your head. // For categories list $(document).on('mouseover', 'td.category div.pull-left a', function() { // do it only once if ($(this).hasClass('link-fixed')) { return; } // do it only if there's subcategories if ($(this).parents('td.category').find('div.subcategories').length) { var link = $(this).prop('href'); $(this).prop('href', link+'/none'); } $(this).addClass('link-fixed'); }); …

---

_[View the full topic](https://meta.discourse.org/t/hiding-topics-from-sub-category/101720)._
