Torri-gate on Font awesome makes post reaction button disappear

Ok here is a fix for a simple shinto priest :shinto_shrine: :slight_smile:

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:

insert the following line of code in the place where it says // Your code here

    api.replaceIcon("far-torii-gate", "torii-gate");

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.

7 Likes