This thread discusses a Discourse theme component titled “Classic About Statistics,” created by pfaffman. The component replaces the modern sidebar statistics with the classic statistics table, a feature appreciated by users like merefield and Richie for reviving legacy functionality. pfaffman noted that the original implementation relied on a potentially fragile CSS selector (last-child) to hide the new header. ToddZ suggested a more robust alternative using nth-of-type and provided a link to a CSS clip solution for suppressing new stats. pfaffman acknowledged the suggestion and planned to integrate the code. Lilly and Richie discussed improving the component’s description to better reflect its function of restoring the classic view. Later, putty flagged a deprecation notice regarding HBS file extensions. pfaffman updated the repository to fix linting errors and migrate to the latest skeleton, though he admitted to not testing the visual output. Richie confirmed that the updates work correctly on his site without issues.
At the time I wrote this the statistics in the right sidebar are not wrapped in a single class, so I had to hide the <h3> header with last-child. I’m not sure how fragile that might be.
Thanks to @Richie and the Grey Arrows Drone Club for paying to develop this theme component and it’s continued maintenance for the first year.
Not to those in the know, and especially, those who know more than I do! It’s rare that I get anything done without asking for help here, even if I’m the one who ends up providing it.
Cool – I approached this with nth-of-type rather than last-child. For anyone wanting to suppress the new stats without restoring old stats, a little CSS clip over here (currently) works:
I copied over the latest stuff from discourse-theme-skeleton and fixed the linting errors. I did not test to see that it works, largely because I don’t really know what the old Classic Statistics are supposed to look like.
Good to know! (Ah, but I’m not an admin right now, so I’ll have to take your word!) You can see if the changes I just made make it any better or worse.