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.
これはカテゴリにのみ機能し、サブカテゴリには機能しないことに気づきました。
これをさらに詳しく説明すると、カテゴリリストの上にボックスとしてサブカテゴリが表示されている場合を除き、どこでも機能します。カテゴリリストの上に、行として表示されている場合は問題なく機能します。
何らかの理由で、categoryTitleLink がボックスに適用されていません。
なぜこのようなことになるのか、何か考えはありますか?コアに(小さな)問題があるのではないかと疑っています。
後ほど…
これは素晴らしいDiscourseチームによって修正されました。何らかの理由で、機能させるにはこのテーマコンポーネントを削除して再インストールする必要があります。
絵文字もFontAwesomeアイコンの代わりに使えるようになると嬉しいです。現在可能でしょうか?
例として、Welcomeカテゴリに
の絵文字を使いたいのですが、これはますます標準的な方法になっていると思います。
ああ、それはとても簡単そうですね☺️ありがとうございます!
どこに設定しますか?コードまたは機能トグルスイッチを変更します
アップロードした画像をURLリンクで使用することは可能ですか?
いいえ、そうは思いません。
デフォルトの南京錠アイコンをFont Awesomeアイコンに置き換えましたが、他のアイコンよりも小さく表示されます。これは、カテゴリのドロップダウンや≡メニューのカテゴリリストで、アイコン自体が非常に小さいことに加えて、テキストの配置が崩れる原因となっています。
Discourse-teamから、テーマCSSに追加できる簡単な回避策を教えてもらいました。
// FIX - 新しいプライベートカテゴリのロックアイコン
svg.fa.d-icon.d-icon-user-plus.svg-icon.svg-string {
font-size: 1.3em;
align-self: center;
}
ハイフンを含む正確な名前のカテゴリのスラッグが尊重されない問題が発生しています。
たとえば、カテゴリのスラッグが次のようになっているとします。
beta-testing
beta-testing-bugs
beta-testing-features
次に、次のテーマコンポーネントエントリを追加します。
beta-testing,trash-alt,categoryColour
beta-testing-bugs,trash-alt,categoryColour
beta-testing-features,trash-alt,categoryColour
最初のカテゴリのみが「trash-alt」アイコンを取得し、その他はアイコンを表示しません。
ハイフンを削除すると機能するようです。
categories:
beta-testing
betatestingbugs
betatestingfeatures
theme component entries
beta-testing,trash-alt,categoryColour
betatestingbugs,trash-alt,categoryColour
betatestingfeatures,trash-alt,categoryColour
これは回避策ですが、スラッグの名前付け規則を壊してしまいます。私が何か間違っているのでしょうか、それともこれはバグでしょうか?