# 返回主题开头

**URL:** <https://meta.discourse.org/t/return-to-start-of-topic/136962>\
**Category:** Feature\
**Created:** [2019年十二月24日 10:25 UTC](https://meta.discourse.org/t/return-to-start-of-topic/136962 "2019-12-24T10:25:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattdamod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdamod/32/65187_2.png) [@mattdamod](https://meta.discourse.org/u/mattdamod)\
**Post date:** [2019年十二月24日 10:25 UTC](https://meta.discourse.org/t/return-to-start-of-topic/136962/1 "2019-12-24T10:25:16Z")

</div>

大家好，圣诞快乐 🙂

我的社区里有几位成员询问是否有更快的方法返回帖子顶部。我已经指出，可以滚动或点击帖子旁边的日期来快速回到开头，但这一点并不明显。

我们的 Discourse 平台用户年龄跨度较大，为了简化操作，有时我们需要把步骤说得更清楚。例如：

原始日期通常显示在这里，但我能否将其替换为图片中建议的内容？

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/1/61def23d3e55aced94ea13d944d59621f2ad84ad.png)

如果可以的话，能否有人提供一些指导，说明如何实现这一点？

---

<div class="post-metadata">

**Author:** ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)\
**Post date:** [2019年十二月24日 10:30 UTC](https://meta.discourse.org/t/return-to-start-of-topic/136962/2 "2019-12-24T10:30:23Z")

</div>

@Steven 用合适的图标替换了日期来重新设计我们的内容，但他也可以修改文本。

---

<div class="post-metadata">

**Author:** ![mattdamod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdamod/32/65187_2.png) [@mattdamod](https://meta.discourse.org/u/mattdamod)\
**Post date:** [2019年十二月24日 10:32 UTC](https://meta.discourse.org/t/return-to-start-of-topic/136962/3 "2019-12-24T10:32:10Z")

</div>

谢谢 @Mark_Schmucker。我应该在哪里进行此更改？能否提供一个示例？

---

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [2019年十二月24日 10:43 UTC](https://meta.discourse.org/t/return-to-start-of-topic/136962/4 "2019-12-24T10:43:48Z")

</div>

您也可以通过在桌面端和移动端点击标题栏中的标题返回主题顶部。

 ![点击标题栏中的标题可返回主题顶部](https://global.discourse-cdn.com/meta/original/3X/9/2/9207d101cf335ad5f3275afb2420f0ec12216ae5.png)。

如果此方法对您的用户无效，而您仍想添加“返回顶部”功能，请将以下代码添加到 [您的主题](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) 的通用 CSS 选项卡中：

```scss
.timeline-date-wrapper .start-date {
  &::before {
    content: "返回顶部"; // 在此处修改文本
  }

  .d-label {
    display: none; // 隐藏主题原作者发布日期
  }
}

```

 ![带有返回顶部功能的主题时间线](https://global.discourse-cdn.com/meta/original/3X/3/e/3ebaac7b48064341546df6016f8ef68cbf1fdbfb.png)

---

<div class="post-metadata">

**Author:** ![mattdamod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdamod/32/65187_2.png) [@mattdamod](https://meta.discourse.org/u/mattdamod)\
**Post date:** [2019年十二月24日 10:46 UTC](https://meta.discourse.org/t/return-to-start-of-topic/136962/5 "2019-12-24T10:46:48Z")

</div>

> [@Johani](#):
>
> .timeline-date-wrapper .start-date { &:before { content: “返回顶部”; // 在此处更改文本 } .d-label { display: none; // 隐藏主题原始发布日期 } }

哇，原来这么简单！非常感谢 @Johani 🙂

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年十二月25日 01:01 UTC](https://meta.discourse.org/t/return-to-start-of-topic/136962/6 "2019-12-25T01:01:53Z")

</div>

> [@mattdamod](#):
>
> 我的社区里有几位成员询问是否有更快的方法返回顶部

- 按键盘上的 Home 键

- 点击浏览器顶部的静态主题标题

- 或者，正如你提到的，点击时间线顶部的日期
