pfaffman
(Jay Pfaffman)
14. November 2024 um 14:10
1
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 „Gefällt mir“
merefield
(Robert)
14. November 2024 um 15:19
2
5 „Gefällt mir“
pfaffman
(Jay Pfaffman)
14. November 2024 um 15:23
3
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.
7 „Gefällt mir“
merefield
(Robert)
14. November 2024 um 15:25
4
Firstly, it’s great to have something from “legacy” that’s actually useful but for whatever reason gets removed 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 „Gefällt mir“
Richie
(Richie Rich)
14. November 2024 um 16:26
5
4 „Gefällt mir“
ToddZ
14. November 2024 um 18:31
6
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:
Hiding “Site activity” section
The old About page had a “stats” class on a div that allowed “Site activity” to be easily suppressed via custom CSS:
//suppress site statistics on old About page
.stats {
display: none;
}
The new About page lacks this div class. It would be nice to have, but for anyone else not wanting site stats shown, here’s a way to suppress the separate elements as they’re currently rendered:
// suppress site statistics on NEW About page
.about__right-side H3:nth-of-ty…
pfaffman
(Jay Pfaffman)
14. November 2024 um 23:04
7
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.
ToddZ
14. November 2024 um 23:09
8
I don’t know if one hack is any better than the other, as long as they work
But yeah, a stats class around the whole thing would be handier.
2 „Gefällt mir“
Lilly
(Lillian Louis)
15. November 2024 um 06:54
9
nice work!
I think perhaps the description should be “replace new about statistics with classic view” or something similar.
2 „Gefällt mir“
Richie
(Richie Rich)
15. November 2024 um 14:31
10
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
2 „Gefällt mir“