Skip to main content
DannyPancratz
VIP ⭐️⭐️⭐️⭐️⭐️
Mar 12, 2021 11:13 PM UTC
Solved

Can you toggle off showing the view count for articles?

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. 

 

bjoern_schulze
Helper ⭐️⭐️⭐️
Mar 15, 2021 9:26 AM UTC

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
Helper ⭐️⭐️⭐️
Mar 15, 2021 9:26 AM UTC

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.

Translate
DannyPancratz
VIP ⭐️⭐️⭐️⭐️⭐️
Jan 21, 2022 3:30 PM UTC

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

Translate
FYI: I am no longer active in this community
SmartlyGreg
Helper ⭐️⭐️⭐️
Jan 22, 2022 1:02 PM UTC

@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!

Translate
DannyPancratz
VIP ⭐️⭐️⭐️⭐️⭐️
Jan 24, 2022 2:42 PM UTC

@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!

Translate
FYI: I am no longer active in this community
SmartlyGreg
Helper ⭐️⭐️⭐️
Jan 24, 2022 3:53 PM UTC

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

Translate
DannyPancratz
VIP ⭐️⭐️⭐️⭐️⭐️
Jan 24, 2022 4:02 PM UTC

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

Translate
FYI: I am no longer active in this community