Продолжение обсуждения из Discourse Reactions :
На скриншоте ниже видно, что иконка по умолчанию для реакций отсутствует в первом посте. Кнопка присутствует и активна (мы можем отреагировать ), и реакции отображаются, как во втором посте.
Вопрос: как восстановить иконку по умолчанию, когда реакции ещё нет?
Настройки:
иконка heart-pulse для кнопки «лайк»
эмодзи и т. д.
панели реакций с приглушёнными цветами
Спасибо!
Moin
13.Август.2025 09:42:13
2
В то время как закрашенная иконка бесплатна, для обычной иконки требуется Font Awesome Pro.
Связанная тема с ошибкой:
I’m trying to add the free, solid, beer icon as my discourse reactions like icon:
[image]
Unfortunately the far- prefix is added to the “beer” text
[image]
and the regular icon is not included in the free tier:
[image]
so the icon does not load:
[image]
If this is intended, is there a workaround for this?
Лилли поделилась обходным решением здесь:
Ok here is a fix for a simple shinto priest
Torii-gate reaction icon fix (or any fontawesome icon that doesn’t have a far version)
Step 1: Add the replacement script to the js tab in the theme/ component code editor
Go to Admin - Themes - Components, create a new theme or component, click the “Edit Code” button and go to the JS tab:
[Screenshot 2025-08-27 at 7.01.23 PM]
[Screenshot 2025-08-27 at 6.56.38 PM]
insert the following line of code in the place where…
Действительно, обходной путь @Lilly работает отлично:
Надеюсь, что несоответствия между UI, эмодзи и SVG скоро будут устранены.
Спасибо, @Moin !