Oh, capisco. ![]()
Puoi ancora usare una soluzione SCSS pura utilizzando gli slug delle categorie:
Se vuoi aggiungere interruzioni di riga nel testo, inserisci \\A all’interno del tuo testo e aggiungi white-space: pre; nelle proprietà dell’elemento pseudo :after.
$categories: "nature", "general";
$labels: "All natural!\\ANaturaaal!" "Another text";
@each $category, $label in zip($categories, $labels) {
body.category-#{$category} .category-heading .category-logo.aspect-image {
max-height: none;
&:after {
display: block;
content: $label;
font-size: 1.25em;
color: var(--primary-700);
white-space: pre;
text-align: center;
}
}
}

