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

 

icon

Best answer by bas 24 November 2022, 13:09

View original

10 replies

Userlevel 2
Badge +1

Hi @Idan 

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

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

Badge +1

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;
}
Userlevel 3
Badge +1

You could do this with custom CSS, something like:

This removes timestamp just from the qa-articles?

Badge +1

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

Userlevel 2
Badge +1

@Idan in your case the category ID for 

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

is “2” (last number on the URL)

Userlevel 3
Badge +1

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 

Badge +1

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

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

 

Badge

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

 

Because I know nothing.

 

Reply