# 特定のカテゴリ以外でビュー列を非表示にする

**URL:** <https://meta.discourse.org/t/hide-views-column-everywhere-except-one-category/101780>\
**Category:** UX\
**Created:** [2018 年 11 月 11 日午後 4:00 UTC](https://meta.discourse.org/t/hide-views-column-everywhere-except-one-category/101780 "2018-11-11T16:00:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)\
**Post date:** [2018 年 11 月 11 日午後 4:00 UTC](https://meta.discourse.org/t/hide-views-column-everywhere-except-one-category/101780/1 "2018-11-11T16:00:28Z")

</div>

I am trying to hide the views column everwhere except for a few categories where I want it visible. I first tried hiding it in the categories where I didn’t want to see it, but then I still want it hidden in latest/new/unread. So I figured I could use `:not` to hide it everywhere except the categories I want it visible, for example:

```
:not(body.category-discussions) {
    .topic-list .views {
        display: none;
    }
}

```

I also tried this:

```
.topic-list .views:not(body.category-discussions) {
	display: none;
}

```

Neither worked. I’m sure I’m missing some stupid simple syntax so forgive my newbness. Thanks!

---

_[View the full topic](https://meta.discourse.org/t/hide-views-column-everywhere-except-one-category/101780)._
