Title: Shortcode for Font Awesome
Author: smgwebdesign
Published: <strong>17. november, 2018</strong>
Last modified: 16. september, 2026

---

Søg plugins

![](https://ps.w.org/shortcode-for-font-awesome/assets/banner-772x250.png?rev=1986762)

![](https://ps.w.org/shortcode-for-font-awesome/assets/icon-256x256.png?rev=1986762)

# Shortcode for Font Awesome

 Af [smgwebdesign](https://profiles.wordpress.org/smgwebdesign/)

[Download](https://downloads.wordpress.org/plugin/shortcode-for-font-awesome.2.0.0.zip)

 * [Detaljer](https://da.wordpress.org/plugins/shortcode-for-font-awesome/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/shortcode-for-font-awesome/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/shortcode-for-font-awesome/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/shortcode-for-font-awesome/#developers)

 [Support](https://wordpress.org/support/plugin/shortcode-for-font-awesome/)

## Beskrivelse

Use `[fa]` to display a Font Awesome icon in posts, pages, Shortcode blocks, classic
menu titles, and Text, Custom HTML or Shortcode block widgets.

Font Awesome must already be loaded by your theme or another plugin. This plugin
does not include or download icon files and does not add an editor button. Available
icons, styles and sizes depend on your Font Awesome installation. Font Awesome 5,
6 and 7 class syntax is supported.

Example: `[fa set="fas" icon="check" size="2x" color="#000000"]`

 * `set`: style/family classes; defaults to `fas`. Multiple classes are allowed,
   for example `fa-classic fa-solid` for Font Awesome 6/7.
 * `icon`: icon name without the `fa-` prefix; defaults to `check`.
 * `size`: optional size without the `fa-` prefix, for example `sm`, `lg`, `2x`,`
   3x`, `5x`, `7x` or `9x`.
 * `color`: optional three- or six-digit hex color (`#abc`, `#aabbcc`) or RGB (`
   rgb(12, 34, 255)`). RGB channels must be integers from 0 to 255. Other color 
   formats and additional CSS declarations are ignored.
 * `label`: optional accessible text for a meaningful standalone icon, for example`[
   fa icon="check" label="Completed"]`. Without a label, the icon is decorative.
   Links and buttons that contain only an icon still need an accessible name on 
   the link or button itself.

Empty or invalid `set`/`icon` values use the defaults. Invalid sizes are omitted.
Class values accept letters, digits, underscores and hyphens; each `set` class must
start with a letter. Use `[[fa]]` to display the shortcode as text.

The additional menu and Custom HTML widget handling processes only `[fa]` in text,
not other shortcodes or HTML attributes. Navigation blocks and custom menu walkers
may require their own shortcode support. Avoid another plugin registering the same`[
fa]` shortcode.

## Installation

 1. Ensure WordPress 6.8 or newer and PHP 8.2 or newer are available.
 2. Install the plugin ZIP through Plugins > Add New > Upload Plugin, or upload the`
    shortcode-for-font-awesome` folder to `/wp-content/plugins/`.
 3. Activate the plugin through the Plugins menu.
 4. Ensure Font Awesome is loaded by your theme or another plugin, then insert a shortcode
    in a supported location.

## Anmeldelser

![](https://secure.gravatar.com/avatar/a8c0a6ae0f05d7b20e880658896985fc381aa075a5c7c2fb08ab5c5dac07c533?
s=60&d=retro&r=g)

### 󠀁[Exactly what I was looking for](https://wordpress.org/support/topic/exactly-what-i-was-looking-for-417/)󠁿

 [arceoh](https://profiles.wordpress.org/arceoh/) 24. oktober, 2019

5 Stars.

![](https://secure.gravatar.com/avatar/0670b76ce507ac91c45129a4d5a0edae122224a7b913ef105af82cdd299e56f4?
s=60&d=retro&r=g)

### 󠀁[Dead](https://wordpress.org/support/topic/dead-26/)󠁿

 [spycraft3r](https://profiles.wordpress.org/spycraft3r/) 15. maj, 2019 1 svar

Yeah, Nup, does not work on my site

 [ Læs alle 2 anmeldelser ](https://wordpress.org/support/plugin/shortcode-for-font-awesome/reviews/)

## Bidragsydere & udviklere

“Shortcode for Font Awesome” er open source-software. Følgende personer har bidraget
til dette plugin.

Bidragsydere

 *   [ smgwebdesign ](https://profiles.wordpress.org/smgwebdesign/)

“Shortcode for Font Awesome” er blevet oversat til 1 sprog. Tak til [oversætterne](https://translate.wordpress.org/projects/wp-plugins/shortcode-for-font-awesome/contributors)
for deres bidrag.

[Oversæt “Shortcode for Font Awesome” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/shortcode-for-font-awesome)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/shortcode-for-font-awesome/),
tjek [SVN repository](https://plugins.svn.wordpress.org/shortcode-for-font-awesome/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/shortcode-for-font-awesome/)
via [RSS](https://plugins.trac.wordpress.org/log/shortcode-for-font-awesome/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 2.0.0

 * Improve validation of color and icon settings and handling in menus and widgets.
 * Add optional accessible labels for icons.
 * Raise minimum requirements to WordPress 6.8 and PHP 8.2.
 * Tested with WordPress 7.1 and updated documentation.

#### 1.4.6

 * Tested with the latest WordPress version

#### 1.4.5

 * There were problems with the update, so an adjustment was made again
 * Code optimized

#### 1.4.4

 * Description revised once again

#### 1.4.3

 * Description adapted

#### 1.4.2

 * Fixed an Error during the Generation of the Color Code

#### 1.4.1

 * The Security of the Plugin was improved

#### 1.4

 * The Security of the Plugin was improved

#### 1.3.1

 * Filter integrated to use Shortcodes in Text Widgets

#### 1.3

 * Filter integrated to use Shortcode also in Navigation Menus

#### 1.2

 * Stable Tag inserted in readme.txt
 * Requires PHP Tag inserted in readme.txt
 * Comments integrated in PHP source code

#### 1.1

 * Function to set the Size integrated
 * Function to set the Color integrated

#### 1.0

 * Font Awesome Files are not integrated, these must already be loaded in WordPress

## Meta

 *  Version **2.0.0**
 *  Senest opdateret **4 uger siden**
 *  Aktive installationer **700+**
 *  WordPress-version ** 6.8 eller højere **
 *  Testet op til **7.1.3**
 *  PHP-version ** 8.2 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/shortcode-for-font-awesome/) og 
   [Russian](https://ru.wordpress.org/plugins/shortcode-for-font-awesome/).
 *  [Oversæt til dit sprog](https://translate.wordpress.org/projects/wp-plugins/shortcode-for-font-awesome)
 * Tags
 * [Font Awesome](https://da.wordpress.org/plugins/tags/font-awesome/)[shortcode](https://da.wordpress.org/plugins/tags/shortcode/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/shortcode-for-font-awesome/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  2 5-stjernet anmeldelser     ](https://wordpress.org/support/plugin/shortcode-for-font-awesome/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/shortcode-for-font-awesome/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/shortcode-for-font-awesome/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/shortcode-for-font-awesome/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/shortcode-for-font-awesome/reviews/?filter=1)

[Din anmeldelse](https://wordpress.org/support/plugin/shortcode-for-font-awesome/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/shortcode-for-font-awesome/reviews/)

## Bidragsydere

 *   [ smgwebdesign ](https://profiles.wordpress.org/smgwebdesign/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/shortcode-for-font-awesome/)