# How to hide the last post date on homepage

**URL:** <https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402>\
**Category:** Development\
**Tags:** css\
**Created:** [June 10, 2020, 10:45am UTC](https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402 "2020-06-10T10:45:17Z")\
**Posts on this page:** 7\
**Page:** 1

## AI-generated summary

**Hiding Last Post Date on Homepage**

[SForum](/t/-/154402/1) asked if there's a setting to hide the last post date on threads on the homepage, specifically the "1d" indicator. [neounix](/t/-/154402/3) replied that it depends on the homepage configuration and provided a CSS solution for the "categories" page. [SForum](/t/-/154402/4) confirmed that's what they meant, and [SForum](/t/-/154402/5) revealed they're using the "latest posts" page.

[neounix](/t/-/154402/6) provided two CSS solutions for the "Latest Posts" page:

* **Narrow CSS:** `thead > tr > th.activity.sortable.num,td.num.age.activity{ display:none; }`
* **Broader CSS:** `thead > tr > th.activity,td.activity{ display:none; }`

These CSS codes hide the relevant activity classes, effectively removing the last post date from the homepage.

<div class="post-metadata">

**Author:** ![SForum](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sforum/32/183553_2.png) [@SForum](https://meta.discourse.org/u/SForum)\
**Post date:** [June 10, 2020, 10:45am UTC](https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402/1 "2020-06-10T10:45:17Z")

</div>

Is there a setting to hide the last post date on threads on the homepage? E.g when it says 1d for example.

Or is custom CSS needed for this?

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [June 10, 2020, 10:48am UTC](https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402/2 "2020-06-10T10:48:07Z")

</div>

Are you talking about the entire Activity column?

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

---

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [June 10, 2020, 10:51am UTC](https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402/3 "2020-06-10T10:51:08Z")

</div>

> [@SForum](#):
>
> Is there a setting to hide the last post date on threads on the homepage? E.g when it says 1d for example.
> 
> Or is custom CSS needed for this?

This depends on what page you are using as your homepage, @SForum

The homepage is configurable.

Which homepage are you using?

If you are using the “categories” page as the home page, then you can try this CSS:

```css
 div.topic-stats > div.topic-last-activity{
     display: none:
}

```

---

<div class="post-metadata">

**Author:** ![SForum](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sforum/32/183553_2.png) [@SForum](https://meta.discourse.org/u/SForum)\
**Post date:** [June 10, 2020, 11:32am UTC](https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402/4 "2020-06-10T11:32:50Z")

</div>

Yes that’s what I mean

---

<div class="post-metadata">

**Author:** ![SForum](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sforum/32/183553_2.png) [@SForum](https://meta.discourse.org/u/SForum)\
**Post date:** [June 10, 2020, 11:33am UTC](https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402/5 "2020-06-10T11:33:21Z")

</div>

I’m using the latest posts

---

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [June 10, 2020, 11:52am UTC](https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402/6 "2020-06-10T11:52:22Z")

</div>

Here ya go, @SForum, some CSS just for you, for the “Latest Posts” page to hide the relevant activity classes (elements):

#### Narrow CSS:

```css
thead > tr > th.activity.sortable.num,td.num.age.activity{
    display:none;
}

```

You could simplify this a bit, if you wanted you wanted to be “broader” with your selector , but I generally like to use narrow selectors (like in the CSS above), to avoid unanticipated consequences:

#### Broader CSS:

```css
thead > tr > th.activity,td.activity{
    display:none;
}

```

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [November 14, 2023, 11:05am UTC](https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402/7 "2023-11-14T11:05:26Z")

</div>

Closed on November 14, 2023, 11:05am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
