Skip to main content
Solved

Can you toggle off showing the view count for articles?

  • March 12, 2021
  • 6 replies
  • 74 views

DannyPancratz
Forum|alt.badge.img+9

We’re in the early stages of our community and wondering if we can turn this off until we reach more of a critical mass. 

 

Best answer by bjoern_schulze

It’s not possible to turn that field off. You could hide it by using custom CSS. But you would manually need to find every instance where this field is shown and identify the unique class in the source code.

6 replies

bjoern_schulze
Forum|alt.badge.img+3
  • Helper ⭐️⭐️⭐️
  • Answer
  • March 15, 2021

It’s not possible to turn that field off. You could hide it by using custom CSS. But you would manually need to find every instance where this field is shown and identify the unique class in the source code.


DannyPancratz
Forum|alt.badge.img+9
  • Author
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • January 21, 2022

@SmartlyGreg wondering if you might be willing to help identify this with your CSS expertise? :sunglasses::pray:


SmartlyGreg
Forum|alt.badge.img
  • Helper ⭐️⭐️⭐️
  • January 22, 2022

@DannyPancratz first of all thanks for thinking of me!

You’ll be glad to know I’ve managed to take care of most of them with custom CSS, but if I missed something maybe just point me to an example page and I’ll let you know if I can fix.

 

The main ones are taken care of with this:

.topic__views-count {
display:none !important;
}
.qa-count-views {
display:none !important;
}
  • The top class takes care of hiding the ones in the homepage or other aggregated results of articles, like categories and search results like the one below. (Adding the “!important” allowed me to catch the featured content views too!)
  • Then the second class I added in the CSS takes care of the more discreet but possibly more relevant article page view count, as is seen below:

 

Hope this helps!


DannyPancratz
Forum|alt.badge.img+9
  • Author
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • January 24, 2022

@SmartlyGreg You are the best! On Community Manager Appreciation Day, I appreciate YOU and your contributions to InSpired since you joined. You’ve been a big help!


SmartlyGreg
Forum|alt.badge.img
  • Helper ⭐️⭐️⭐️
  • January 24, 2022

@DannyPancratz I’m honoured to receive this award today. I’d like to thank my parents, my wife… :)

Seriously, happy to help! The community has been a great inspiration for me in setting up InSided for Smartly.io, so I give back when I can! Your kind words are a much appreciated bonus.

Feel free to mention me if you feel I can be of help. Always happy to give it a shot. 


DannyPancratz
Forum|alt.badge.img+9
  • Author
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • January 24, 2022

@SmartlyGreg and @ future readers: confirming that this CSS worked for me as intended.