# Hidden category appearing again after update

**URL:** https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652
**Category:** Support
**Created:** [February 27, 2018, 12:13pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652 "2018-02-27T12:13:49Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![\_vincent](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/_vincent/32/119557_2.png) [@\_vincent](https://meta.discourse.org/u/_vincent)
#### Post date: [February 27, 2018, 12:13pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/1 "2018-02-27T12:13:50Z")

</div>

Hi!

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?

 ![01](https://global.discourse-cdn.com/meta/original/3X/e/f/ef1317acedae5df2be0d6fda82c5b6098d2685e6.png)

Thanks!

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [February 27, 2018, 1:00pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/2 "2018-02-27T13:00:43Z")

</div>

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" - #8 by sam](https://meta.discourse.org/t/unexpected-interaction-between-suppress-category-on-homepage-and-user-preference-for-homepage/78586/8)

---

<div class="post-metadata">

### Author: ![\_vincent](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/_vincent/32/119557_2.png) [@\_vincent](https://meta.discourse.org/u/_vincent)
#### Post date: [February 27, 2018, 4:23pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/3 "2018-02-27T16:23:13Z")

</div>

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?

 ![14](https://global.discourse-cdn.com/meta/original/3X/6/e/6e515b2be514e6c47f5f40a362088ca9c5b37953.png)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [February 27, 2018, 4:29pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/4 "2018-02-27T16:29:03Z")

</div>

You can target it with the data attribute

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

```

---

<div class="post-metadata">

### Author: ![\_vincent](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/_vincent/32/119557_2.png) [@\_vincent](https://meta.discourse.org/u/_vincent)
#### Post date: [February 27, 2018, 4:31pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/5 "2018-02-27T16:31:51Z")

</div>

Thanks for teaching me something! It works perfectly.

---

<div class="post-metadata">

### Author: ![Bernstein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bernstein/32/304070_2.png) [@Bernstein](https://meta.discourse.org/u/Bernstein)
#### Post date: [March 13, 2018, 5:45pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/7 "2018-03-13T17:45:32Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)
#### Post date: [April 3, 2018, 2:29pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/8 "2018-04-03T14:29:13Z")

</div>

Hi,

I can’t find the post I previous made to which Joshua responded with something very similar, in our case;

```plaintext
.category-list tr[data-category-id="14"] 
{
    display: none;
}

```

Our problem is that this only appears to work for _non_ mobile platforms, as such, everything we have hidden via CSS still shows on mobile.

Any thoughts/help would be really appreciated.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [April 3, 2018, 2:47pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/9 "2018-04-03T14:47:14Z")

</div>

Just to rule out the obvious, you put that same CSS in the Mobile version (or Common – I think?) of the theme too, right?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [April 3, 2018, 2:49pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/10 "2018-04-03T14:49:23Z")

</div>

Right, we were previously missing the data-category-id on the mobile category page, which made it impossible to select specific categories in most cases. I made a change last week to include it so mobile/desktop will work the same, and I believe the update should roll out to you within the next day or so.

---

<div class="post-metadata">

### Author: ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)
#### Post date: [April 3, 2018, 2:59pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/11 "2018-04-03T14:59:32Z")

</div>

It wasn’t myself making the changes but yes, I believe so.

Thanks for checking 🙂

---

<div class="post-metadata">

### Author: ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)
#### Post date: [April 3, 2018, 3:00pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/12 "2018-04-03T15:00:04Z")

</div>

Aha, great stuff, I will mention this to those involved.

Thank you 🙂

---

<div class="post-metadata">

### Author: ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)
#### Post date: [April 7, 2018, 8:50pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/13 "2018-04-07T20:50:22Z")

</div>

Just wantes to check, has our hosted instance beem updated yet? If so, its not working on mobile. If not, any eta @awesomerobot?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [April 10, 2018, 2:19pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/14 "2018-04-10T14:19:06Z")

</div>

It’s updated now so you should have what you need on mobile; sorry for the slightly longer than estimated time.

---

<div class="post-metadata">

### Author: ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)
#### Post date: [April 10, 2018, 2:20pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/15 "2018-04-10T14:20:55Z")

</div>

Hi,

Thats ok, just trying to establish if the issue is at our end as at the monent it hasnt changed. Perhaps its cached. Will experiment! 🙂

---

<div class="post-metadata">

### Author: ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)
#### Post date: [June 5, 2018, 11:49pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/16 "2018-06-05T23:49:19Z")

</div>

Hey @awesomerobot ,

We are still having problems with this. The sub-categories in question don’t appear via desktop, but _still_ appear on mobile. Any help would be really appreciated.

The hosted site is : [https://community.gamedev.tv](https://community.gamedev.tv)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [June 6, 2018, 1:57pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/17 "2018-06-06T13:57:40Z")

</div>

There’s a difference in how the HTML is built so this bit of CSS:

```CSS
.category-list tr[data-category-id="25"] { 
    display: none;
}

```

is only targeting the `tr` we use on desktop, and not the `div` we use on mobile.

If the `tr` is removed it should work on mobile and desktop:

```CSS
.category-list [data-category-id="25"] { 
    display: none;
}

```

---

<div class="post-metadata">

### Author: ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)
#### Post date: [June 6, 2018, 2:15pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/18 "2018-06-06T14:15:04Z")

</div>

His Kris,

Thanks for the reply and info… excitedly running off to test this now! 🙂

…excitedly runs back… ironically I cant seem to scroll in the text area where the CSS is displayed when using my mobile so will have to try when I return home. 🤭

---

<div class="post-metadata">

### Author: ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)
#### Post date: [June 6, 2018, 3:16pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/19 "2018-06-06T15:16:38Z")

</div>

\*BOOM\*

Thanks so much for this Kris, it has been a mild iteration for so long and to have it finally resolved feels great.

🙂

---

<div class="post-metadata">

### Author: ![outofthebox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/outofthebox/32/83708_2.png) [@outofthebox](https://meta.discourse.org/u/outofthebox)
#### Post date: [February 15, 2019, 9:13pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/20 "2019-02-15T21:13:23Z")

</div>

Hi,

Does this CSS still work? I am struggling to have it hide Categories for me.

```
.category-list [data-category-id="25"] { 
    display: none;
}

```

Are the Category IDs for the Lounge and Staff Categories the same for each installation?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:37pm UTC](https://meta.discourse.org/t/hidden-category-appearing-again-after-update/81652/21 "2024-06-08T12:37:18Z")

</div>

This topic was automatically closed after 2293 days. New replies are no longer allowed.
