ToddZ
14. November 2024 um 18:31
6
Jay Pfaffman:
Zum Zeitpunkt, als ich dies schrieb, waren die Statistiken in der rechten Seitenleiste nicht in einer einzigen Klasse eingeschlossen, daher musste ich die <h3>-Überschrift mit last-child ausblenden. Ich bin mir nicht sicher, wie anfällig das sein könnte.
Cool – ich habe dies mit nth-of-type und nicht mit last-child angegangen. Für alle, die die neuen Statistiken unterdrücken möchten, ohne die alten Statistiken wiederherzustellen, funktioniert ein kleiner CSS-Clip hier (derzeit):
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…