Kategorien-Symbole

Try this:

.select-kit .category-badge-icon {
    display: none;
}
1 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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

1 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

Mir ist aufgefallen, dass dies nur für Kategorien und nicht für Unterkategorien funktioniert.

3 „Gefällt mir“

Darüber hinaus funktioniert es überall außer dort, wo Unterkategorien als Boxen über einer Kategorieliste angezeigt werden. Es funktioniert einwandfrei als Zeilen über einer Kategorieliste.

Aus irgendeinem Grund wird categoryTitleLink nicht auf die Boxen angewendet.

Irgendeine Idee, warum das so ist? Ich vermute, dass es sich um ein (kleines) Problem im Kern handelt.


später…

Dies wurde vom wunderbaren Discourse-Team behoben. Aus irgendeinem Grund müssen Sie diese Theme-Komponente jedoch entfernen und neu installieren, damit sie funktioniert:

3 „Gefällt mir“

Ich würde es tatsächlich lieben, wenn dies auch das Einfügen von Emojis anstelle von nur FontAwesome-Symbolen ermöglichen würde. Ist das derzeit möglich?

Das Beispiel ist, dass ich eine Willkommenskategorie haben möchte und ich denke, dass das :waving_hand:t2: Emoji ein immer gängigerer Weg ist, dies zu tun.

2 „Gefällt mir“

Sie können Ihrer Kategorie einen Emoji hinzufügen, indem Sie Ihren nativen Emoji-Picker in Ihrem Betriebssystem verwenden.

4 „Gefällt mir“

Ah, das scheint einfach genug :smiling_face: Danke!

2 „Gefällt mir“

Wo soll es eingestellt werden? Ändern Sie den Schalter für Code oder Funktion

1 „Gefällt mir“

Wäre es möglich, hochgeladene Bilder mit einem URL-Link zu verwenden?

1 „Gefällt mir“

Nein, ich glaube nicht.

3 „Gefällt mir“

Ich habe ein Font Awesome-Symbol angegeben, um das standardmäßige Vorhängeschlosssymbol zu ersetzen. Seltsamerweise scheint es kleiner zu sein als die anderen Symbole… Dies führt zu einer ungleichmäßigen Ausrichtung des Textes (zusätzlich zur Tatsache, dass das Symbol selbst winzig ist) in den Dropdown-Menüs der Kategorien und in der Kategorieauflistung des ≡-Menüs…

1 „Gefällt mir“

Wie kann ich die Farbe von Orange nach Blau ändern?

1 „Gefällt mir“

Discourse-team gab mir einen kleinen Workaround, der dem Theme-CSS hinzugefügt werden kann:

// FIX - Neues Schloss-Symbol für private Kategorien
svg.fa.d-icon.d-icon-user-plus.svg-icon.svg-string {
    font-size: 1.3em;
    align-self: center;
}
2 „Gefällt mir“

Ich habe ein Problem, bei dem die Kategorie-Slugs keine Bindestriche in exakten Namen zu respektieren scheinen.
Wenn ich zum Beispiel Kategorie-Slugs habe:

beta-testing
beta-testing-bugs
beta-testing-features

Dann füge ich die folgenden Theme-Komponenten-Einträge hinzu:

beta-testing,trash-alt,categoryColour
beta-testing-bugs,trash-alt,categoryColour
beta-testing-features,trash-alt,categoryColour

Nur die erste Kategorie erhält das Icon “trash-alt”, die anderen zeigen kein Icon an.
Wenn ich die Bindestriche entferne, scheint es zu funktionieren.

categories:
beta-testing
betatestingbugs
betatestingfeatures

theme component entries

beta-testing,trash-alt,categoryColour
betatestingbugs,trash-alt,categoryColour
betatestingfeatures,trash-alt,categoryColour

Dies ist eine Problemumgehung, aber sie bricht irgendwie die Namenskonvention für Slugs. Mache ich etwas falsch oder ist das ein Fehler?

2 „Gefällt mir“