# CSS class on Body tag to distinguish homepage / non-category page

**URL:** <https://meta.discourse.org/t/css-class-on-body-tag-to-distinguish-homepage-non-category-page/51201>\
**Category:** Feature\
**Created:** [2016 年10 月 7 日 00:15 UTC](https://meta.discourse.org/t/css-class-on-body-tag-to-distinguish-homepage-non-category-page/51201 "2016-10-07T00:15:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

作者： ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
发布日期： [2016 年10 月 7 日 04:32 UTC](https://meta.discourse.org/t/css-class-on-body-tag-to-distinguish-homepage-non-category-page/51201/5 "2016-10-07T04:32:04Z")

</div>

> [@charleswalter](#):
>
> What do you think of the suggesting of adding a catch all “global” class as well, when there is no category defined

I don’t think there would be that many of them where using a comma separated list would be that much trouble.

But a “global” class would be easier.

If it’s going to be done I guess now while that area of code is being worked on would be the opportune time to do it.

Think as I might, ATM the best I can come up with as a descriptive value is “non-category”. It just feels to me that there should be _something, anything_ better than that, but I got nothing.

---

_[View the full topic](https://meta.discourse.org/t/css-class-on-body-tag-to-distinguish-homepage-non-category-page/51201)._
