تضمين الرموز التعبيرية في أسماء الفئات

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

:loudspeaker: Announcements

:desktop_computer: Tech Support

إعجابَين (2)

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

5 إعجابات

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 إعجابات

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

إعجاب واحد (1)

كنت أبحث عن هذا للتو - نظرًا لأن اختصار MD لم يعمل في حقل اسم الفئة - لذا حاولت نسخ ولصق قلب أحمر :heart: في اسم الفئة واكتشفت أن ديسكورس سيقبله بكل سرور كما لو كان سيقبل أيضًا :ringer_planet: زحل

تم إغلاق هذا الموضوع تلقائيًا بعد 2353 يومًا. لم يعد يُسمح بالردود الجديدة.