# استخدم أيقونات Font-Awesome 4 في السمة مع الإبقاء على FA5؟

**URL:** https://meta.discourse.org/t/use-font-awesome-4-icons-in-theme-but-keep-fa5/118776
**Category:** Development
**Created:** [27 مايو 2019، 9:30ص UTC](https://meta.discourse.org/t/use-font-awesome-4-icons-in-theme-but-keep-fa5/118776 "2019-05-27T09:30:16Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [28 مايو 2019، 2:18ص UTC](https://meta.discourse.org/t/use-font-awesome-4-icons-in-theme-but-keep-fa5/118776/9 "2019-05-28T02:18:51Z")

</div>

You need to follow the instructions Falco linked earlier more closely:

> [@Introducing Font Awesome 5 and SVG icons](https://meta.discourse.org/t/introducing-font-awesome-5-and-svg-icons/101643/1):
>
> If you would like to have more icons than what’s available in FontAwesome, you can add your own SVG icons in a plugin or a theme.
> 
> _In themes_ : add the SVG sprite in your theme’s `/assets` folder, and reference it in `about.json` using the variable name `icons-sprite` . For a sprite called `my-icons.svg` , your assets.json should include this:
> 
> ```plaintext
> "assets": {
> "icons-sprite": "/assets/my-icons.svg"
> }
> 
> ```
> 
> _In plugins_ : simply include an SVG sprite file in the `plugins/your-plugin-name/svg-icons` folder (see [this example SVG sprite](https://raw.githubusercontent.com/discourse/discourse/master/vendor/assets/svg-icons/discourse-additional.svg)). Restart your server (if in dev) or rebuild the site if in a Docker container and your custom icons should be automatically available .

In your repository, the svg file needs to be a sprite and the variable name in `about.json` shouldn’t be `old`, it should be `icons-sprite`. Then to replace the icon in JS, you need to use the id from the sprite in `api.replaceIcon`.

---

_[View the full topic](https://meta.discourse.org/t/use-font-awesome-4-icons-in-theme-but-keep-fa5/118776)._
