Skip to main content
Idan
Contributor ⭐️⭐️⭐️
Nov 24, 2022 7:52 AM UTC
Solved

Removing timestamp from an article

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

 

bas
basAnswer
Helper ⭐️⭐️⭐️
Nov 24, 2022 12:09 PM UTC

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 ⭐️⭐️
Nov 24, 2022 9:56 AM UTC

Hi @Idan 

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

Translate
Idan
IdanAuthor
Contributor ⭐️⭐️⭐️
Nov 24, 2022 11:22 AM UTC

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... 

Translate
bas
basAnswer
Helper ⭐️⭐️⭐️
Nov 24, 2022 12:09 PM UTC

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;
}
Translate
revote
VIP ⭐️⭐️⭐️⭐️⭐️
Nov 24, 2022 12:32 PM UTC

You could do this with custom CSS, something like:

This removes timestamp just from the qa-articles?

Translate
bas
Helper ⭐️⭐️⭐️
Nov 24, 2022 2:32 PM UTC

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

Translate
Daniele Cmty
Helper ⭐️⭐️
Nov 24, 2022 2:35 PM UTC

@Idan in your case the category ID for 

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

is “2” (last number on the URL)

Translate
revote
VIP ⭐️⭐️⭐️⭐️⭐️
Nov 24, 2022 3:03 PM UTC

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 

Translate
bas
Helper ⭐️⭐️⭐️
Nov 24, 2022 3:05 PM UTC

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

Translate
Idan
IdanAuthor
Contributor ⭐️⭐️⭐️
Nov 24, 2022 4:10 PM UTC

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

 

Translate
Paul_
Contributor ⭐️⭐️⭐️⭐️⭐️
Nov 29, 2022 9:06 AM UTC

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

 

Because I know nothing.

 

Translate