ToddZ
14 Novembre 2024, 6:31pm
6
Jay Pfaffman:
Al momento in cui ho scritto questo, le statistiche nella barra laterale destra non sono racchiuse in una singola classe, quindi ho dovuto nascondere l’intestazione <h3> con last-child. Non sono sicuro di quanto possa essere fragile.
Fantastico – ho affrontato questo problema con nth-of-type invece di last-child. Per chiunque desideri sopprimere le nuove statistiche senza ripristinare quelle vecchie, un piccolo ritaglio CSS qui (attualmente) funziona:
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…