# 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:** 3

<div class="post-metadata">

作者： ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
发布日期： [2016 年10 月 7 日 02:47 UTC](https://meta.discourse.org/t/css-class-on-body-tag-to-distinguish-homepage-non-category-page/51201/3 "2016-10-07T02:47:54Z")

</div>

> [@charleswalter](#):
>
> perhaps to all non-category pages

This was recently done via:

[https://github.com/discourse/discourse/commit/72f93699667b5695b13338ebe580acc75b8fd301](https://github.com/discourse/discourse/commit/72f93699667b5695b13338ebe580acc75b8fd301)

> [@charleswalter](#):
>
> I couldnt figure out how to target CSS only to be applied to the homepage or non category pages

Currently there is no identifier (unique class) for `/latest`, `/new`, `/unread` & `/top` pages. I will add that and notify here.

---

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