You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#116298 Font Awesome Plugin - Icons not showing on front end

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by linkage on Tuesday, 27 February 2024 20:25 GMT

linkage
I have installed the font awesome plugin and configured and I see the icons in the editor, however I am only getting the little boxes on the front end. As per the configuration documentation, I have added this to my user.css:

@import url('/media/templates/site/cassiopeia/css/user.css/vendor/fontawesome-free/css/fontawesome.min.css');

@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    src: url('/media/templates/site/cassiopeia/css/user.css/vendor/fontawesome-free/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-style: normal;
    font-weight: 400;
    src: url('/media/templates/site/cassiopeia/css/user.css/vendor/fontawesome-free/webfonts/fa-brands-400.woff2') format('woff2');
}
...but still no display on the front end. See the page: https://www.mindfulnest.org/courses/discover-mindfulness-2024-03 (Find text "Short talks on mindfulness meditation") Thank you!

Ryan
FontAwesome is already being loaded by your template, so you can remove what you have added to the user.css file.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

linkage
Thank you Ryan! That's what I thought with Cassiopeia but when it didn't work, I thought I would try adding the css. What else might I try?

Ryan
You have multiple versions of Fontawesome loading, which is causing the issue. Have you configured the FontAwesome plugin to load fontawesome in the front-end (as per the instructions here - https://www.joomlacontenteditor.net/downloads/plugins/font-awesome-for-jce)?

If so, then disable that option.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

linkage
Yes, I had done that. I have now set it to 'No'. Is that what you mean, or disable the fontawesome plugin?

Ryan
Yes, set it to No. That is only required if you want to load fontawesome in the front-end because your template doesn't include it.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
You also have a plugin called ochjssocials which is loading fontawesome. Does that have an option to disable loading of fontawesome?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

linkage
Ah, beautiful Ryan. It didn't have font awesome specifically but it had an option to 'load script and style sheets'. Once disabled, that has fixed it!

linkage
Actually, that disabled the display of the font awesome social icons, so I re-enabled and then selected that extension's other option 'remove style sheets'. Now I have both working.

Thank you for the swift responses!