UPDATE
I have changed the script code by removing the website URL from the path also use all.js instead of all.min.js file and that worked
<script defer src="/templates/j51_bianca/FontAwesomePro/fontawesome-pro-6.1.2-web/js/all.js"></script>
After reviewing FA docs, I decided to avoid using "all.js" or "all.css" and switch to individual styles to improve performance as they recommended (Ref:
https://fontawesome.com/docs/web/setup/upgrade/)
Also since the script code renders SVG + JS files, I decided to go with Web Fonts + CSS files instead as Joomla 4 and J51 modules are not 100% ready for FA-6 yet.
For the sake of other users who would like to use FA-6 in their projects and do not want to alter their current modules and template css settings, I added the following within my template's index.php (../templates/j51_bianca/index.php):
**I could have added it to the Head Custom Code field of my templates parameters but I have around 25 template styles within my project and I wanted an easier option
<link href="/templates/j51_bianca/FontAwesomePro/fontawesome-pro-6.1.2-web/css/fontawesome.css" rel="stylesheet">
<link href="/templates/j51_bianca/FontAwesomePro/fontawesome-pro-6.1.2-web/css/regular.css" rel="stylesheet">
<link href="/templates/j51_bianca/FontAwesomePro/fontawesome-pro-6.1.2-web/css/light.css" rel="stylesheet">
<link href="/templates/j51_bianca/FontAwesomePro/fontawesome-pro-6.1.2-web/css/brands.css" rel="stylesheet">
<link href="/templates/j51_bianca/FontAwesomePro/fontawesome-pro-6.1.2-web/css/duotone.css" rel="stylesheet">
* I have only added the Styles files that I want for my project here. Users can add any style they want from their icons Pro kit.
This has made the social media icons on the hornv menu and J51_Icons module work perfectly fine and as they should without any css code or modification. Only one drawback is the
duotone icon style would not render perfectly or line as it should be when used within text or within menu item class but they work beautifully with the J51_Icons module and that's all what I need. (see attachments)
**If duotone style is a must on all modules, then inserting the script code will load the SVG files and render the duotone style as an image but then this will alter any modules that are with the previous FA version settings. So you can add the following between the HEAD tags in your index.php
<script defer src="/your_path_to_version_6_files/js/solid.js"></script>
<script defer src="/your_path_to_version_6_files/js/brands.js"></script>
So you have to compromise and chose which is more important for you.
I only need one favor from you Ciaran here as the last update you made removed the logo from my offline page, please direct me on how to fix that.
Thanks,
Mai