Classic About Statistics

Install this theme component

Display the old about statistics under the moderators and hide the new statistics on the right sidebar.

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.

15 Likes

It wasn’t obvious you were up to something like this at all :wink: :male_detective: :rocket:

5 Likes

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

7 Likes

Firstly, it’s great to have something from “legacy” that’s actually useful but for whatever reason gets removed :+1: so thanks for keeping this around.

Secondly, been there, done that … I often post then up to a day later solve my own problem so know where you are coming from!

9 Likes

Agreed :blush:

Great Theme component, thanks @pfaffman :star_struck:

4 Likes

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:

Thanks, @ToddZ! I would have used the nth- version if I knew anything about css. I’ll integrate your code tomorrow or next week.

Maybe I’ll submit a PR with the proper class so these css tricks aren’t required.

I don’t know if one hack is any better than the other, as long as they work :smile:

But yeah, a stats class around the whole thing would be handier.

2 Likes

nice work! :clap:

I think perhaps the description should be “replace new about statistics with classic view” or something similar.

2 Likes

Maybe just:

Replace the about statistics with the classic statistics table

ie. Remove the word “new”, as the new about page won’t stay new for long :slight_smile:

2 Likes