Ich versuche, den Icon-Stil in meinem Discourse-Forum zu ändern. Ich möchte von Font Awesome, das Discourse meiner Meinung nach verwendet, zu etwas wie Feather oder Hero Icons wechseln. Wie kann ich das tun?
Hallo, willkommen!
Discourse stützt sich ausschließlich auf FontAwesome-Icons, aber es gibt eine Möglichkeit, Standard-Icons mit einem SVG-Spritesheet zu überschreiben:
You can replace a Discourse’s default SVG icons individually or as a whole with your own custom SVG and override them within a theme or theme component.
Step 1 - Create an SVG Spritesheet
To get started, you must create an SVG Spritesheet. This can contain anything from a single additional custom SVG icon up to an entire replacement set of hundreds.
The spritesheet should be saved as an SVG file. In principle, you are nesting the <svg> tag contents from the original SVG icon file into <symbol> …
5 „Gefällt mir“