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.
Notei que isso só funciona em Categorias, não em Subcategorias.
Além disso, funciona em todos os lugares exceto onde as subcategorias são exibidas como caixas acima de uma lista de categorias. Funciona bem como linhas acima de uma lista de categorias.
Por algum motivo, categoryTitleLink não está sendo aplicado às caixas.
Alguma ideia do porquê isso acontece? Suspeito que possa ser um (pequeno) problema no core.
mais tarde…
Isso foi corrigido pela maravilhosa equipe do Discourse. Por algum motivo, você precisa remover e reinstalar este Componente de Tema para que ele funcione:
Eu adoraria se isso também me permitisse usar emojis em vez de apenas ícones do FontAwesome. Isso é possível atualmente?
O exemplo é que eu quero ter uma categoria de Boas-vindas e acho que o emoji
parece ser uma maneira cada vez mais padrão de fazer isso.
Você pode adicionar um emoji ao nome da categoria usando o seu seletor de emojis nativo no seu sistema operacional.
Ah, isso parece simples o suficiente
Obrigado!
Onde definir? Modificar o código ou o interruptor de função
Seria possível usar fotos carregadas com link de URL?
Não, eu não acho.
Especifiquei um ícone do Font Awesome para substituir o ícone de cadeado padrão. Curiosamente, ele parece ser menor que os outros ícones… Isso causa um desalinhamento estranho do texto (além do próprio ícone ser extrapequeno) em menus suspensos de categoria e na listagem de categorias do menu ≡…
A equipe do Discourse me deu uma pequena solução alternativa que pode ser adicionada ao CSS do tema:
// CORREÇÃO - Novo ícone de cadeado em categorias privadas
svg.fa.d-icon.d-icon-user-plus.svg-icon.svg-string {
font-size: 1.3em;
align-self: center;
}
Estou a ter um problema em que o slug da categoria não parece respeitar os hifens em nomes exatos.
Por exemplo, se eu tiver os slugs de categoria:
beta-testing
beta-testing-bugs
beta-testing-features
Então eu adiciono as seguintes entradas de componente de tema:
beta-testing,trash-alt,categoryColour
beta-testing-bugs,trash-alt,categoryColour
beta-testing-features,trash-alt,categoryColour
Apenas a primeira categoria recebe o ícone “trash-alt” e as outras não exibem nenhum ícone.
Se eu remover os hifens, parece funcionar
categories:
beta-testing
betatestingbugs
betatestingfeatures
theme component entries
beta-testing,trash-alt,categoryColour
betatestingbugs,trash-alt,categoryColour
betatestingfeatures,trash-alt,categoryColour
Esta é uma solução alternativa, mas quebra um pouco a convenção de nomenclatura para slugs. Estou a fazer algo errado ou isto é um bug?