# 功能请求：为 Discourse 主题添加 wp-discourse CSS 类

**URL:** https://meta.discourse.org/t/feature-request-add-wp-discourse-css-class-to-the-discourse-topic/111138
**Category:** WordPress
**Created:** [2019 年3 月 9 日 02:28 UTC](https://meta.discourse.org/t/feature-request-add-wp-discourse-css-class-to-the-discourse-topic/111138 "2019-03-09T02:28:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [2019 年3 月 9 日 02:28 UTC](https://meta.discourse.org/t/feature-request-add-wp-discourse-css-class-to-the-discourse-topic/111138/1 "2019-03-09T02:28:04Z")

</div>

I am trying to style the blog posts within the discourse topics. Since classes and ids are stripped, it’s tricky to customize the link to original post for example. I am publishing into multiple categories, hence category based css would conflict with regular topics.

How about adding a css class like `wp-discourse` into the to the discourse topic, e.g. into the `<body>` tag?
