Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Using FontAwesome 5 with Shortcode core

Started by elisabetta 6 years ago · 2 replies · 889 views
6 years ago

Hi all, I'd like to use FontAwesome 5 in my pages. I enabled "Use Font Awesome vers.5" in the plugin settings and used this url
//use.fontawesome.com/releases/v5.14.0/css/all.css

then i added this shortcode in the page

[fa icon=camera extras=fas /] Camera

it works nicely, but what if I want to have an extra sizing?

I tried with:

[fa icon=camera extras=fas /] Camera <i class="fas fa-camera fa-5x"></i>

this way I have a small camera, called by the first part of the shortcode, and a big one, called by the i class
How can I have just one big camera icon?

I tried also with

[fa icon=camera extras=fas fa-5x /] Camera

but with no success

What am i doing wrong?

6 years ago

What's the plugin? What if you wrap in quotes fas fa-5x? Eg. [fa icon=camera extras="fas fa-5x" /]

6 years ago

@Karmalakas:
[fa icon=camera extras="fas fa-5x" /]

The plugin is Shortcode Core version 5.0.4
Your solution works perfectly, but not for every icon: if I try "bone" I've only a big square instead of the icon, if I use "camera" it is displayed correctly

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 350 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago