Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Using FontAwesome 5 with Shortcode core

Started by elisabetta 5 years ago · 2 replies · 604 views
5 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?

5 years ago

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

5 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 Rene, 1 week ago
2 49 1 week ago
Plugins · by Xavier, 4 weeks ago
2 57 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1184 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 50 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 75 2 months ago