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.

Content & Markdown

Some Font Awesome icons not usable

Started by AquaL1te 5 years ago · 1 replies · 875 views
5 years ago

I use the following in a modular features page of the Quark theme:

YAML
        icon: 'fa fa-mastodon'
        header: '<a rel="me" href="https://mastodon.online/@Zeitgeistbeweging">Mastodon</a>'
        text: null
        url: null

Which in the admin panel looks like:
Screenshot_2021-02-01 Contact amp; nieuws ( home _contact ) Zeitgeistbeweging Nederland|690x231

So it's able to do a successful lookup. My guess is that Font Awesome 4.7.0 (which is installed in Grav 1.7.3) doesn't have the Mastodon icon and that Grav does a lookup online, which probably uses Font Awesome 5.x.

I also read somewhere that Font Awesome 5 has breaking changes with Font Awesome 4 and that's why it's not updated yet in Grav. I guess Grav 2.0 will fix that?

I would like to confirm this, to ensure I'm not overlooking something. What would be a workaround? I'll use the Twitter logo in the meantime.

5 years ago

@AquaL1te,

As far as I know, Font-Awesome 4.7 does not contain fa-mastodon.

Admin uses a fork of Font-Awesome which seems to have added 'fa-mastodon'. So, no online lookup.

Workaround:

  • Use the Twitter logo in the meantime. ;-)
  • Or copy the fonts from 'user/plugins/admin/themes/grav/fonts/forkawesome*' to '/user/themes/quark/fonts'.
    Haven't tried it myself...
  • Or upgrade to Font-Awesome as explained in another post.

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 8 months ago
6 99 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 186 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 148 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 62 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 257 1 year ago