Includi emoji nei nomi delle categorie

Is it possible to display emojis in Category names like this?:

:loudspeaker: Announcements

:desktop_computer: Tech Support

2 Mi Piace

You could probably do some fancy CSS customization to achieve something similar.

5 Mi Piace

Probably not inside the drop-downs as the list items are not styled with classes that can distinguish different categories. Nor in category lists.

One way to do this is to use the category’s url as a guideline.

Here’s a very rough example:

[href="/c/hosting"] .badge-category-bg { // remove default category color marker
    display: none !important;
}

[href="/c/hosting"] .badge-category:before { // add new font awesome icon in its place
    font-family: fontawesome;
    content: "\f1b9";
    margin-right: 5px;
}

This would result in:

I have not tested this everywhere and it needs a lot more refinement but that’s the basic idea.

The composer selecter has attributes added to category list items like data-name="hosting"

9 Mi Piace

This is cool. Probably the closest I can get for now. Thank you!

1 Mi Piace

stavo giusto cercando questo - dato che l’MD-shortcode non funzionava nel campo del nome della categoria - ho provato a copiare e incollare un cuore rosso :heart: nel nome della categoria e ho scoperto che discourse lo accetterà volentieri come probabilmente accetterebbe anche :ringer_planet: saturno

Questo argomento è stato chiuso automaticamente dopo 2353 giorni. Non sono più consentite nuove risposte.