# Giving tags FA5 icons

**URL:** https://meta.discourse.org/t/giving-tags-fa5-icons/109407
**Category:** Support
**Created:** [17 בפברואר,‏ 2019,‏ 11:18pm UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407 "2019-02-17T23:18:13Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [17 בפברואר,‏ 2019,‏ 11:18pm UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/1 "2019-02-17T23:18:13Z")

</div>

Before the migration to SVG icons, I had used the following css code to give certain tags a FA5 icon.

`.discourse-tag.tag-s-pc:not(.simple)::before, .discourse-tag.tag-featured:not(.simple)::before { content: "\f058"; } `

Any idea how to make the icons work again with accordance to the SVG update? Thanks.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [17 בפברואר,‏ 2019,‏ 11:22pm UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/2 "2019-02-17T23:22:25Z")

</div>

See [(Superseded) Add a custom fontawesome icon and color to your tag](https://meta.discourse.org/t/add-a-custom-fontawesome-icon-and-color-to-your-tag/67881)

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [17 בפברואר,‏ 2019,‏ 11:32pm UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/3 "2019-02-17T23:32:41Z")

</div>

Thank you for the reference. I can’t seem to find the actual property/chunk of code that is responsible for the SVG icon?

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [17 בפברואר,‏ 2019,‏ 11:39pm UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/4 "2019-02-17T23:39:03Z")

</div>

Thanks for the reference. I went to [thenounproject.com](http://thenounproject.com) and I downloaded the SVG of an icon I’ve found, but I don’t how to implement it

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/4/34996cf30b0aa9a5197f02ac9ce26977efd024cc.png)

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [17 בפברואר,‏ 2019,‏ 11:47pm UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/5 "2019-02-17T23:47:58Z")

</div>

So what’s up with FA5? 🤔

If you use a custom icon (and not an entire set) just upload the icon on the site and use the URL that will be created

```plaintext
content: url(your-icon-url);

```

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [19 בפברואר,‏ 2019,‏ 4:27am UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/7 "2019-02-19T04:27:25Z")

</div>

I’m still having trouble implementing an icon I want from FA5.

> **[Circle Check Filled Icon (Classic Solid) — Free SVG Download | Font Awesome](https://fontawesome.com/icons/check-circle?style=solid)**
>
> Download the Circle Check filled icon as a free SVG or PNG. A bold Classic Solid style icon for web and app projects.

How would you add that in the `content: svg-uri('svg..)` segment? Apologies for my ignorance.

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [19 בפברואר,‏ 2019,‏ 4:32am UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/8 "2019-02-19T04:32:29Z")

</div>

Take a look at the following post and the comments that follow:

> [@(Superseded) Add a custom fontawesome icon and color to your tag](https://meta.discourse.org/t/add-a-custom-fontawesome-icon-and-color-to-your-tag/67881/13):
>
> Thanks for bumping this, with FontAwesome 5 the technique in the OP will no longer work. Our FA5 implementation switches from using an icon font to SVGs, so the content: "\f0a1" will no longer display an icon, the font where that character points will no longer be included. Here is a way to do the same thing with SVGs once FA5 is in core: @import "common/foundation/mixins"; [data-tag-name="tag1"]:link, [data-tag-name="tag1"]:visited, [data-tag-name="tag1"].bullet:before { color: red; } […

It looks like @pmusaraj is going to be working on something that will end up being exactly what you are looking for, but in the mean time he provides instructions for using `svg-uri()`.

**Edit:** The Github link in the above post appears to be broken. This should be the current working link:

[Font-Awesome/js-packages/@fortawesome/fontawesome-free/sprites at master · FortAwesome/Font-Awesome · GitHub](https://github.com/FortAwesome/Font-Awesome/tree/master/js-packages/%40fortawesome/fontawesome-free/sprites)

Once you’ve clicked on that link, then click on the appropriate set (solid in your case), then click the raw button and search the page for `check-circle`. The code below should be what you need, but I wanted to include instructions for posterity.

```plaintext
<path d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"></path>

```

The rest of the instructions are still accurate.

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [19 בפברואר,‏ 2019,‏ 7:06am UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/9 "2019-02-19T07:06:36Z")

</div>

Thank you so much Sir 😃

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [19 בפברואר,‏ 2019,‏ 9:41am UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/10 "2019-02-19T09:41:13Z")

</div>

This feels to me like a very reasonable feature request for core, “allow mods to pick a font awesome icon or image per tag”, I can see it as something very useful, especially when the icon is perfect, For example a docker icon for the docker tag here

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [19 בפברואר,‏ 2019,‏ 12:20pm UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/11 "2019-02-19T12:20:04Z")

</div>

That is true, we can also use the SUPER FROWNY FACE ☹ for unsupported install tag.

(Sadly and somewhat ironically the Twitter set makes this [less frowny than every other emoji set](https://emojipedia.org/white-frowning-face/). Curse you Twitter!)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [21 במרץ,‏ 2019,‏ 12:20pm UTC](https://meta.discourse.org/t/giving-tags-fa5-icons/109407/12 "2019-03-21T12:20:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
