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 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