Try this:
.select-kit .category-badge-icon {
display: none;
}
Try this:
.select-kit .category-badge-icon {
display: none;
}
That did it. Thank you for the help! I think Discourse navigation is fine as-is but for now I have to implement this small feature for these users and hopefully I can remove it at some point in the future. It’s more of a stop gap fix for the moment.
Hi,
Is it just me, or does this component not recognize name changes in slugs?
I doesn’t seem to recognize category slugs with changed names in my case, not right away anyway.
I use the dark mode component as well.
So that makes it a bit difficult to use this for the main categories. Because the icon shows up next to the main category. I now use “categoryColor”, which is red. That works for both the dark and light mode on my forum. But then the icon is not visible in the category selection menu. Because it has the same color as it. So there is just a blank space. Is there a way to fix this? Use an alternative color for the category dropdown menu? Because when “categoryColor” is used, the icon is not visible anymore. Would be great to have a white color for the icon there.
Ah, well, #cfcfcf works fine in both dark and light mode. Other option is also to use emojis of course 
I’d like to use an icon that is only available with a Font Awesome Pro subscription (specifically this icon). How can I do so with this theme component?
You need to first install this plugin:
And then the pro icons should be available for use for you, including for this component.
Thank you, Penar, I’ll take a look at this. I’m having some unrelated trouble rebuilding the forum, and haven’t been able to test this out yet.
Ho notato che questo funziona solo sulle categorie, non sulle sottocategorie.
Inoltre, funziona ovunque tranne dove le sottocategorie sono visualizzate come caselle sopra un elenco di categorie. Funziona bene come righe sopra un elenco di categorie.
Per qualche motivo categoryTitleLink non viene applicato alle caselle.
Hai qualche idea sul perché questo accada? Sospetto che possa essere un (piccolo) problema nel core.
più tardi…
Questo è stato risolto dal meraviglioso team di Discourse. Per qualche motivo, è necessario rimuovere e reinstallare questo Componente Tema affinché funzioni:
In realtà, mi piacerebbe se questo mi permettesse anche di inserire emoji invece di semplici icone FontAwesome. È attualmente possibile?
L’esempio è che voglio avere una categoria di benvenuto e penso che l’emoji
sia un modo sempre più standard per farlo.
Puoi aggiungere un’emoji al nome della categoria usando il tuo emoji picker nativo nel tuo sistema operativo.
Ah, sembra abbastanza semplice
Grazie!
Dove impostarlo? Modifica il codice o l’interruttore della funzione
Sarebbe possibile usare immagini caricate con un link URL?
No, non credo.
Ho specificato un’icona Font Awesome per sostituire l’icona predefinita del lucchetto. Curiosamente, sembra essere più piccola delle altre icone… Questo causa un disallineamento del testo (oltre al fatto che l’icona stessa è minuscola) nei menu a discesa delle categorie e nell’elenco delle categorie del menu ≡…
Il team di Discourse mi ha dato una piccola soluzione temporanea che può essere aggiunta al CSS del tema:
// FIX - Nuova icona di lucchetto per le categorie private
svg.fa.d-icon.d-icon-user-plus.svg-icon.svg-string {
font-size: 1.3em;
align-self: center;
}
Sto riscontrando un problema in cui lo slug della categoria non sembra rispettare i trattini nei nomi esatti.
Ad esempio, se ho gli slug delle categorie:
beta-testing
beta-testing-bugs
beta-testing-features
Quindi aggiungo le seguenti voci del componente del tema:
beta-testing,trash-alt,categoryColour
beta-testing-bugs,trash-alt,categoryColour
beta-testing-features,trash-alt,categoryColour
Solo la prima categoria assume l’icona “trash-alt” e le altre non visualizzano alcuna icona.
Se rimuovo i trattini sembra funzionare
categorie:
beta-testing
betatestingbugs
betatestingfeatures
voci del componente del tema
beta-testing,trash-alt,categoryColour
betatestingbugs,trash-alt,categoryColour
betatestingfeatures,trash-alt,categoryColour
Questa è una soluzione alternativa, ma rompe un po’ la convenzione di denominazione per gli slug. Sto facendo qualcosa di sbagliato o è un bug?