Category Icons

Try this:

.select-kit .category-badge-icon {
    display: none;
}
「いいね!」 1

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.

「いいね!」 2

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.

「いいね!」 1

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.

「いいね!」 1

Ah, well, #cfcfcf works fine in both dark and light mode. Other option is also to use emojis of course :slight_smile:

「いいね!」 1

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?

「いいね!」 1

You need to first install this plugin:

FontAwesome Pro icons

And then the pro icons should be available for use for you, including for this component.

「いいね!」 3

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.

「いいね!」 2

これはカテゴリにのみ機能し、サブカテゴリには機能しないことに気づきました。

「いいね!」 3

これをさらに詳しく説明すると、カテゴリリストの上にボックスとしてサブカテゴリが表示されている場合を除き、どこでも機能します。カテゴリリストの上に、行として表示されている場合は問題なく機能します。

何らかの理由で、categoryTitleLink がボックスに適用されていません。

なぜこのようなことになるのか、何か考えはありますか?コアに(小さな)問題があるのではないかと疑っています。


後ほど…

これは素晴らしいDiscourseチームによって修正されました。何らかの理由で、機能させるにはこのテーマコンポーネントを削除して再インストールする必要があります。

「いいね!」 3

絵文字もFontAwesomeアイコンの代わりに使えるようになると嬉しいです。現在可能でしょうか?

例として、Welcomeカテゴリに :waving_hand:t2: の絵文字を使いたいのですが、これはますます標準的な方法になっていると思います。

「いいね!」 2

OSの絵文字ピッカーを使用して、カテゴリ名に絵文字を追加できます。

「いいね!」 4

ああ、それはとても簡単そうですね☺️ありがとうございます!

「いいね!」 2

どこに設定しますか?コードまたは機能トグルスイッチを変更します

「いいね!」 1

アップロードした画像をURLリンクで使用することは可能ですか?

「いいね!」 1

いいえ、そうは思いません。

「いいね!」 3

デフォルトの南京錠アイコンをFont Awesomeアイコンに置き換えましたが、他のアイコンよりも小さく表示されます。これは、カテゴリのドロップダウンや≡メニューのカテゴリリストで、アイコン自体が非常に小さいことに加えて、テキストの配置が崩れる原因となっています。

「いいね!」 1

これをオレンジ色から青色に変更するにはどうすればよいですか?

「いいね!」 1

Discourse-teamから、テーマCSSに追加できる簡単な回避策を教えてもらいました。

// FIX - 新しいプライベートカテゴリのロックアイコン
svg.fa.d-icon.d-icon-user-plus.svg-icon.svg-string {
    font-size: 1.3em;
    align-self: center;
}
「いいね!」 2

ハイフンを含む正確な名前のカテゴリのスラッグが尊重されない問題が発生しています。

たとえば、カテゴリのスラッグが次のようになっているとします。

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

これは回避策ですが、スラッグの名前付け規則を壊してしまいます。私が何か間違っているのでしょうか、それともこれはバグでしょうか?

「いいね!」 2