Skip to main content
Idan
Contributor ⭐️⭐️⭐️
November 24, 2022
Solved

Removing timestamp from an article

  • November 24, 2022
  • 10 replies
  • 139 views

Hey everyone! Is it possible to remove the time when an article was created? Like here in the attached screenshot where it says 28 days ago?

 

Thank you

 

Best answer by bas

You could do this with custom CSS, something like:

/* hide timestamp from specific category */
/* 3 lines, first removes timestamp, second the dot separator and the third re-aligns everything */

body.category-2 .qa-topic-first-post li .tooltip .qa-latest-post-time {
display: none;
}
body.category-2 .qa-topic-first-post li:nth-of-type(2)::before {
display: none;
}
body.category-2 .qa-topic-first-post li:nth-of-type(2){
margin-left: 0;
}

10 replies

Daniele Cmty
Helper ⭐️⭐️
November 24, 2022

Hi @Idan 

Would you like to remove it from all articles / topics or just for a specific one?

Idan
IdanAuthor
Contributor ⭐️⭐️⭐️
November 24, 2022

Hey @Daniele Cmty

We were thinking of moving it from all the KB articles.

Some customers indicated that old articles that were updated remained with the old date... 

bas
basAnswer
Helper ⭐️⭐️⭐️
November 24, 2022

You could do this with custom CSS, something like:

/* hide timestamp from specific category */
/* 3 lines, first removes timestamp, second the dot separator and the third re-aligns everything */

body.category-2 .qa-topic-first-post li .tooltip .qa-latest-post-time {
display: none;
}
body.category-2 .qa-topic-first-post li:nth-of-type(2)::before {
display: none;
}
body.category-2 .qa-topic-first-post li:nth-of-type(2){
margin-left: 0;
}
revote
VIP ⭐️⭐️⭐️⭐️⭐️
November 24, 2022

You could do this with custom CSS, something like:

This removes timestamp just from the qa-articles?

bas
Helper ⭐️⭐️⭐️
November 24, 2022

The snippet was meant as inspiration, not as a specific fix for this specific need. Check what you need based on your own structure.
What I shared removes the timestamp from topics in the category with ID=2

Daniele Cmty
Helper ⭐️⭐️
November 24, 2022

@Idan in your case the category ID for 

https://community.cymulate.com/cymulate-s-news-updates-2
 

is “2” (last number on the URL)

revote
VIP ⭐️⭐️⭐️⭐️⭐️
November 24, 2022

The snippet was meant as inspiration, not as a specific fix for this specific need. Check what you need based on your own structure.
What I shared removes the timestamp from topics in the category with ID=2

Oh sorry, of course. I looked the code again. Sorry 

bas
Helper ⭐️⭐️⭐️
November 24, 2022

And my apologies in turn, that message was a lot harsher in tone than I meant it to be 🤗

Idan
IdanAuthor
Contributor ⭐️⭐️⭐️
November 24, 2022

Thank you all for helping! I will try it with our developers. 

 

Paul_
Contributor ⭐️⭐️⭐️⭐️⭐️
November 29, 2022

Love this topic btw. Always looking for some cool CSS stuff. 

 

Because I know nothing.