Fontawesome icons work... every now and then!

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
Esentialist
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri May 06, 2022 1:30 am

Fontawesome icons work... every now and then!

Post by Esentialist » Fri Nov 11, 2022 9:27 am

Hi folks,

I included, as specified by FontAwesome, the script in the index.php file of my Joomla 4 template:

<script data-search-pseudo-elements src="https://kit.fontawesome.com/##########.js" crossorigin="anonymous"></script>

It works, but only on mobile intermittently. Meaning sometimes the icons show, other times they don't.
Any help on the matter appreciated. I'm wondering if the cause isn't a conflict with Joomla 4 uploading FontAwesome automatically...

TC2
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Nov 07, 2022 2:08 pm

Re: Fontawesome icons work... every now and then!

Post by TC2 » Fri Nov 11, 2022 11:05 am

Can you try hosting the fonts yourself?
That way you know for sure it's not a CDN/load issue with FontAwesome servers.
Maybe a cache problem? Have you tried another phone yet?

filliphey
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jan 12, 2023 9:59 am

Re: Fontawesome icons work... every now and then!

Post by filliphey » Thu Jan 12, 2023 10:01 am

TC2 wrote:
Fri Nov 11, 2022 11:05 am
Can you try hosting the fonts yourself?
That way you know for sure it's not a CDN/load issue with FontAwesome servers.
Maybe a cache problem? Have you tried another phone yet?
i have the same problems

filliphey
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jan 12, 2023 9:59 am

Re: Fontawesome icons work... every now and then!

Post by filliphey » Thu Jan 19, 2023 9:54 am

TC2 wrote:
Fri Nov 11, 2022 11:05 am
Can you try hosting the fonts yourself?
That way you know for sure it's not a CDN/load issue with FontAwesome servers. You can also find a useful selection of free SEO keyword research tools here https://ninjareports.com/free-keyword-research-tools/.
Maybe a cache problem? Have you tried another phone yet?
It’s not working because you’re using the wrong data-x-icon attribute. You should use data-x-icon-b. The following is a list of the attributes available.


Locked

Return to “General Questions/New to Joomla! 4.x”