# Adding visited class to topic-details instead of just topic-title

**URL:** <https://meta.discourse.org/t/adding-visited-class-to-topic-details-instead-of-just-topic-title/47850>\
**Category:** Development\
**Created:** [2016 年7 月 27 日 05:34 UTC](https://meta.discourse.org/t/adding-visited-class-to-topic-details-instead-of-just-topic-title/47850 "2016-07-27T05:34:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
发布日期： [2016 年7 月 27 日 05:52 UTC](https://meta.discourse.org/t/adding-visited-class-to-topic-details-instead-of-just-topic-title/47850/2 "2016-07-27T05:52:53Z")

</div>

> [@andrewroth](#):
>
> So I want to put the visited class on the topic-details instead of the topic-title.

All of this stuff is being injected via the plugin in a rather hacky way (I guess @angus only had the alternative of totally rewriting the template)

> <https://github.com/merefield/discourse-topic-previews-sidecar/blob/74bd386ea980a27f755b9bfbf275043fe8649a27/assets/javascripts/discourse/initializers/preview-edits.js.es6#L90-L92>

I found it by searching for the particular string in the plugin

---

_[View the full topic](https://meta.discourse.org/t/adding-visited-class-to-topic-details-instead-of-just-topic-title/47850)._
