When I change the discourse reaction like button to torii-gate on Font Awesome.
I lose the like button entirely…
As you can see it is gone, but if I hover over where it is, It triggers. With a red box around where the icon should be.
If I change the Icon back to “thumbs-up” it displays properly
I really want the Torri Gate as my reaction icon, because the point of this Discourse forum is for an offshoot of Shinto called Bunrai Shinto.
Please help me.
I am a simple shinto priest.
And I have a feeling
this a bug
that is not getting fixed.
pfaffman
(Jay Pfaffman)
September 24, 2024, 5:08am
2
It’s not a bug. Not all icons are loaded.
I can’t find it right now on my phone, but if you search you can find how to include additional font awesome icons.
4 Likes
Lilly
September 24, 2024, 5:21am
3
I think it’s because of this
I think the Reaction code adds a ‘far’ to things, which will make them go blank if there’s no far version:
[Untitled]
[Untitled2]
I feel like it should work, but when I gave it a try, I could only get it to load the non-far versions so that it only showed for already liked posts. Also, the reaction emoji is called shinto_shrine
so to get it into the reactions modal, you have to load the emoji in the reactions settings.
5 Likes
Moin
September 24, 2024, 3:56pm
5
I think the problem is the same as in
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?
There is only a solid torri gate.
3 Likes
It is a sad day for Burai Shinto.
1 Like
Lilly
September 25, 2024, 2:25am
7
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 head section
Go to Admin - Themes (or Components) and add this code to the head tab of a new theme or component in Edit CSS/HTML:
<script type="text/discourse-plugin" version="0.8">
api.replaceIcon("far-torii-gate", "torii-gate");
</script>
Step 2: Add the emoji to the existing reaction set then change the other settings
Go to the reactions plugin settings. This is the configuration you need to do, but it needs to be done in a certain order (from bottom to top):
First add the shinto_shrine
to the discourse reactions enabled reactions
setting, click the green check mark then refresh the browser page.
Next, select the shinto_shrine
emoji from the drop down for the discourse reactions reaction for like
setting.
Then add torii-gate
to the discourse reactions like icon
setting.
Make sure you click the green checkmarks and refresh the browser.
That should do it. Let me know if you need any more help.
6 Likes
Thank you for the detailed reply
This poor Shinto priest
Just tired to access the components panel
and it asked me to upgrade
I am so poor
and the Kami basically kick my teeth in everyday
Thanks for trying to help me.
Hopefully when shinto takes over the united states
I can afford a premium plan.
system
(system)
Closed
December 6, 2024, 11:14pm
10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.