Skip to main content
Solved

Custom Styling of Questions-with-zero-replies in Activity Feeds


DannyPancratz
Forum|alt.badge.img+7

Because I got such a fast and great solution in this question…

 

Is there a way to create a similar script based on if a question has 0 or less than one reply? I’d want to change the color of the Title in the activity feed to make it visually stand out. 

cc: @leo-inspired & @olimarrio 

Best answer by leo-inspired

I'm not a front-end expert, but I tried to make a script for this and was unable to do it. It's tough because the reply icon, like counter, and timer all use the same CSS class. Also, changing the topic title color separately isn't easy because it's connected to the 'Heading color.'

It might be doable with more advanced JavaScript, perhaps with help from a front-end engineer. Something like:

 

View original
Did you find this topic helpful?

2 replies

leo-inspired
  • Gainsight Employee ⭐️
  • 160 replies
  • Answer
  • February 16, 2024

I'm not a front-end expert, but I tried to make a script for this and was unable to do it. It's tough because the reply icon, like counter, and timer all use the same CSS class. Also, changing the topic title color separately isn't easy because it's connected to the 'Heading color.'

It might be doable with more advanced JavaScript, perhaps with help from a front-end engineer. Something like:

 


DannyPancratz
Forum|alt.badge.img+7
  • Author
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • 956 replies
  • February 16, 2024

@leo-inspired thanks for trying!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings