Hidden category appearing again after update

(Vincent) #1


The default “Staff” category, which remained hidden since I set up Discourse, suddenly re-appeared on my forum homepage. It seems to be related to an app rebuild I just launched.

Did a setting change for this version?


(cpradio) #2

Yes, depending on what your homepage is set to, that setting only applies to Latest now. If you want to hide it from the Categories page, you have to use CSS.

See Unexpected interaction between "suppress category on homepage" and "user preference for homepage"

(Vincent) #3

I don’t think I can use CSS selectors to match a tr data-category-id. This would have to be done with JS, am I right?

(Kris) #4

You can target it with the data attribute

tr[data-category-id="4"] {
    display: none;

Discourse 2.0.0.beta4 Release Notes
(Vincent) #5

Thanks for teaching me something! It works perfectly.

(Carey B) #7

Thanks for sharing this. I’m curious if there’s a way to have it also affect categories in mobile view? Right now it’s not working for me outside of desktop view. Any advice would be greatly appreciated. I used Discourse for an online interactive narrative experience that has distinct in-world and out-of-world elements. Right now a bunch out-of-world categories are littering my in-world front page in mobile view. Thanks again!