Ich kann die Benachrichtigungssymbole nicht ändern

Hi, everybody
I want to change these icons

I did it like this

And I wrote it in the Header
image

But the icon has not changed
It works with other icons
Please help me solve this problem

2 „Gefällt mir“

Hi Mikhail,

Please try this one :slightly_smiling_face:

<script type="text/discourse-plugin" version="0.8">
  api.replaceIcon('notification.granted_badge', 'oo-medal-badges');
</script>

You can find these replacements here :arrow_down:

4 „Gefällt mir“

Yes, it worked. Thank you very much
image

1 „Gefällt mir“

And where can I see what they look like?

You can easily identify it by using inspect elements.

For example.: the certificate icon notification

  1. Find the icon name with inspect elements


  1. Find the same icon in the icon-library js

Then you can replace the icon with any other icon you want. :slightly_smiling_face:

1 „Gefällt mir“

Thanks for your reply
I figured it out. I thought there was some sort of list with standard Discourse icons

1 „Gefällt mir“

Darf ich das für zukünftige Referenz hinzufügen. Ich habe die Anweisungen unter Replace Discourse's default SVG icons with custom icons in a theme - #19 befolgt, aber was mir anfangs nicht bewusst war, ist, dass dasselbe Symbol auf verschiedene Arten referenziert werden kann. In der App selbst, unter „/styleguide/atoms/icons“, gibt es eine Liste aller Symbole und wie sie referenziert werden. In meiner header.html-Datei habe ich jetzt 5 Referenzen auf das Briefumschlag-Symbol:

    api.replaceIcon('envelope', 'fgx-air-mail');
    api.replaceIcon('far-envelope', 'fgx-air-mail');
    api.replaceIcon('notification.private_message', 'fgx-air-mail');
    api.replaceIcon('notification.read_private_message', 'fgx-air-mail');
    api.replaceIcon('notification.invited_to_private_message', 'fgx-air-mail');
2 „Gefällt mir“