How to remove last visit

AI-generated summary

Ankush_Santra, a beginner, asked how to remove the “last visit” line from a Discourse topic list, initially confusing it with user presence features. After clarifying with screenshots, Canapin provided CSS code to hide the activity date column, which Ankush tried but didn’t work as expected. Canapin then corrected the code targeting .topic-list .topic-list-item-separator .topic-list-data to successfully hide the separator line showing last activity. Ankush_Santra confirmed it worked and thanked Canapin for the help. The discussion clarified that the “last visit” referred to was actually the last topic activity timestamp, not user presence, and was resolved with custom CSS.

Greetings of the day, experts!
Apologies for disturbing you all again, but I am a beginner, and I am still learning. Again, with a question, is there a way to remove the last visit?
I am not proficient in CSS. So, if needed, I will be grateful if you can share the code as well.
Thank You in advance and have a nice day!

Hi Ankush!

On which page is the “Last visit” you’re talking about?

Can you provide a screenshot?

Is it the image thingy that is refered to as the Last Visit that the OP is talking about? (That’s what I think the OP is refering to.)

Users can disable presence in their profile settings. See https://meta.discourse.org/my/preferences/interface and Hide my public profile and presence features or disable it globally with presence enabled on site settings

Please accept my apologies, Sir. I forgot to attach the screenshot. Here’s there last visit I was talking about:


I want to remove this line, since I think I don’t need it. Thank You for your time.

Apologies, I wan’t asking about this. I have shared a screenshot above. Thank You for taking the time to reply.

Thank You for the reply, Sir. It’s not what I was asking for, and I have shared the screenshot as well. Apologies for not sharing it before.

Hi!

It’s not the last visit, it’s the date of the last activity on the topic, whether it’s a user post, an admin/moderator action, etc…

Oh, my bad. Is there a way to remove it?

Yes, this CSS will do the job:

th.activity, td.activity {
    display: none;
}

:sparkles:

Thank Your for the quick reply. I have added the CSS code.

But seems like nothing has changed:

Oh sorry, I misunderstood. I thought you were talking about the last column.
Here’s the working code:

.topic-list .topic-list-item-separator {
    border-bottom: 1px solid var(--primary-low);
    .topic-list-data {
        display: none;
    }
}

Before:

After:

It worked, thank you so much! I am so grateful. Have a great day, Sir!