# Custom like button no longer appears after

**URL:** https://meta.discourse.org/t/custom-like-button-no-longer-appears-after/157288
**Category:** Support
**Created:** [July 9, 2020, 6:35pm UTC](https://meta.discourse.org/t/custom-like-button-no-longer-appears-after/157288 "2020-07-09T18:35:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![abrambailey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abrambailey/32/119786_2.png) [@abrambailey](https://meta.discourse.org/u/abrambailey)
#### Post date: [July 9, 2020, 6:35pm UTC](https://meta.discourse.org/t/custom-like-button-no-longer-appears-after/157288/1 "2020-07-09T18:35:24Z")

</div>

I had the following code installed in my custom theme under the `</head>` section:

```
   <script type="text/discourse-plugin" version="0.8"> 
          api.replaceIcon('d-liked', 'thumbs-up'); 
          api.replaceIcon('d-unliked', 'thumbs-o-up'); 
          api.replaceIcon('heart', 'thumbs-up'); // profile pages 
          api.replaceIcon('notification.liked', 'thumbs-up'); // notifications 
    </script>

```

Previously while on 2.5.x this was working to replace the heart, but now the custom icon is gone, and there is no heart. Has the method changed for replacing the heart? Thanks.

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [July 9, 2020, 6:42pm UTC](https://meta.discourse.org/t/custom-like-button-no-longer-appears-after/157288/2 "2020-07-09T18:42:46Z")

</div>

There’s been some cleaning up in the [icon library](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse-common/addon/lib/icon-library.js) if I remember correctly.

Could you try adding in the setting : `svg icon subset`, the icons

`fa-thumbs-up`  
`far-thumbs-up`

The script might need some edit too, but I’m not sure if it will work with this

```plaintext
   <script type="text/discourse-plugin" version="0.8"> 
          api.replaceIcon('d-liked', 'thumbs-up'); 
          api.replaceIcon('d-unliked', 'far-thumbs-up'); 
          api.replaceIcon('heart', 'thumbs-up'); // profile pages 
          api.replaceIcon('notification.liked', 'thumbs-up'); // notifications 
    </script>

```

or

```plaintext
   <script type="text/discourse-plugin" version="0.8"> 
          api.replaceIcon('d-liked', 'fa-thumbs-up'); 
          api.replaceIcon('d-unliked', 'far-thumbs-up'); 
          api.replaceIcon('heart', 'fa-thumbs-up'); // profile pages 
          api.replaceIcon('notification.liked', 'fa-thumbs-up'); // notifications 
    </script>

```

I tested on a theme component I use for christmas (gift icon instead of heart) and it works, so the javascript is still good

---

<div class="post-metadata">

### Author: ![abrambailey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abrambailey/32/119786_2.png) [@abrambailey](https://meta.discourse.org/u/abrambailey)
#### Post date: [July 9, 2020, 6:55pm UTC](https://meta.discourse.org/t/custom-like-button-no-longer-appears-after/157288/3 "2020-07-09T18:55:00Z")

</div>

> [@Steven](#):
>
> Could you try adding in the setting : `svg icon subset` , the icons

Sorry for the additional question, but where is this done?

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [July 9, 2020, 6:59pm UTC](https://meta.discourse.org/t/custom-like-button-no-longer-appears-after/157288/4 "2020-07-09T18:59:40Z")

</div>

your-forum/admin/site\_settings/

search for this setting and you’ll find it easily

---

<div class="post-metadata">

### Author: ![abrambailey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abrambailey/32/119786_2.png) [@abrambailey](https://meta.discourse.org/u/abrambailey)
#### Post date: [July 9, 2020, 7:08pm UTC](https://meta.discourse.org/t/custom-like-button-no-longer-appears-after/157288/5 "2020-07-09T19:08:19Z")

</div>

Awesome thanks so much! Found it:

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/1/c15376a362f9f4beb5ac8e01b9801f23748d5840.png)
