Question

Removing timestamp from an article

  • 24 November 2022
  • 10 replies
  • 66 views

Userlevel 1
  • Ready to take it to the next level
  • 12 replies posted

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

 


10 replies

Userlevel 5
Badge +3

Hi @Idan 

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

Userlevel 1

Hey @Daniele

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

Userlevel 5
Badge +2

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 4
Badge +2

You could do this with custom CSS, something like:

This removes timestamp just from the qa-articles?

Userlevel 5
Badge +2

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 5
Badge +3

@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 4
Badge +2

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 

Userlevel 5
Badge +2

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

Userlevel 1

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

 

Userlevel 2
Badge +1

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

 

Because I know nothing.

 

Reply