Problems With Font Awesome - Question | JoomShaper

Problems With Font Awesome

JF

Jens Funk

SP Page Builder 3 years ago

Hello, again and again the font awesome icons on this website are not rendered in the correct way. For example on single articles everything works fine: https://waldorfschule-maschsee.de/aktuelles/meldungen/765-waldorfschulen-helfen-der-ukraine.html

but not in the blog-modus (in the text and right column): https://waldorfschule-maschsee.de/aktuelles/meldungen.html

In my theme options (shaper educon) advanced tab, there is no possibility to activate font awesome, like in newer templates. Do you have any advice?

Many thanks in advance, Best, Jens

0
9 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #60744

Hello,

Yes, it will get updates to fit with the new helix versions and the Joomla 4 as well. As you may know our plan about it already. However, here it is:

https://www.joomshaper.com/blog/joomshaper-s-plans-for-joomla-4

Best Regards

0
CG
Christian GRENIER
Accepted Answer
3 years ago #60435

Hi

The same for me!!!

Edit:

Found for me: this link is missing with template:

<link href="/media/system/css/joomla-fontawesome.min.css" rel="stylesheet">

Bye

0
JF
Jens Funk
Accepted Answer
3 years ago #60459

I also put some research on this topic: the page source reveals different orders of css-files: Working: <link href="/templates/shaper_educon/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> ... <link href="/components/com_sppagebuilder/assets/css/font-awesome-5.min.css?f53ba91a9cc92bb2348e4eab5b1ff3a1" rel="stylesheet" type="text/css" /> <link href="/components/com_sppagebuilder/assets/css/font-awesome-v4-shims.css?f53ba91a9cc92bb2348e4eab5b1ff3a1" rel="stylesheet" type="text/css" /> Not working: <link href="/components/com_sppagebuilder/assets/css/font-awesome-5.min.css?f53ba91a9cc92bb2348e4eab5b1ff3a1" rel="stylesheet" type="text/css" /> <link href="/components/com_sppagebuilder/assets/css/font-awesome-v4-shims.css?f53ba91a9cc92bb2348e4eab5b1ff3a1" rel="stylesheet" type="text/css" /> ... <link href="/templates/shaper_educon/css/font-awesome.min.css" rel="stylesheet" type="text/css" />

In the latter the css-file (deprecated ?) of the good old educon overwrites the newer font-awesome-5.css-file, I suppose. Don't know either. How can I change this? Adding the font-weight-declaration, as recommended in the documentation, brings no solution.

Hello Joomshaper, have you any advice?

0
CG
Christian GRENIER
Accepted Answer
3 years ago #60467

Hi

That I do... for Joomla 4

File: /templates/mytemplate/index.php

In <head> section, I added...

<link href="/media/system/css/joomla-fontawesome.min.css" rel="stylesheet">

It works for me, but Im' not sure for you...

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #60482

Hi Jens Funk,

Sorry for your issue.

You can use the following code in your custom.css file:

.fa{
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 600 !important;
}

Hope this will solve the issue for now.

However, the Template will get updates soon as we are on the process of updating all of our templates to adapt new versions of Joomla and others.

Best Regards

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #60483

Kindly, do let me know if it helps!

0
JF
Jens Funk
Accepted Answer
3 years ago #60586

Hello Rashida Rahman, thanks for your response. In this case, I found the reason. On this page with a blog, an article with a youtube-video is published (License to paint): https://waldorfschule-maschsee.de/aktuelles/meldungen.html

The video is embedded with a SP Page Builder-module with the video-addon, via loadposition/loadmodule (makes no difference). If I turn this off, everything works fine.

As described above, embedding a video in this way, causes a change in the order of the css-files in the head (page-source): font-awesome-min.css of the template appears at last.

Best, Jens Funk

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #60723

Hi Jens Funk,

Thanks for sharing your experience with us, and glad that you have made it:)

Best Regards

0
JF
Jens Funk
Accepted Answer
3 years ago #60734

Hi Rashida Rahman, but this mixture of older and newer Versions of font awesome and sometimes well working icons is not really satisfying. Are there updates may be expected? Thanks a lot, Jens Funk

0