mrtechnik Posted March 11, 2019 Share Posted March 11, 2019 Hi, I have updated my version of WHMCS and I noticed the release notes mention a Single location for Font Awesome. This is great but I have a custom theme that already has Font Awesome 5 compressed into my CSS when the SCSS is compiled. Is there a way to remove this dynamic injection? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Peter Posted March 12, 2019 Share Posted March 12, 2019 Hi @WeaveHosting, Thanks for reaching out! We mention this in the article you've referenced: https://docs.whmcs.com/Version_7.7.0_Release_Notes#Single_location_for_Font_Awesome To avoid WHMCS automatically injecting this, you can add a HTML comment to your <head> in the form of a link tag and WHMCS will not do this. For example: <!-- <link href="/whmcs/assets/css/fontawesome-all.min.css" rel="stylesheet"> --> Naturally, you'll need to update the href attribute to reflect the actual location of this file. Because WHMCS see's it being referenced, WHMCS will not inject it again. As it's commented out, it would not be called, allowing your theme to call your own CSS files. 0 Quote Link to comment Share on other sites More sharing options...
mrtechnik Posted March 12, 2019 Author Share Posted March 12, 2019 Thanks, @WHMCS Peter. I did read that before posting, however now I have re-read that section it makes sense. I wonder whether that paragraph could be rewritten to be more explicit. Thank you again. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Peter Posted March 13, 2019 Share Posted March 13, 2019 Hi @WeaveHosting, Thanks for your feedback. I've opened a case with our Documentation team to have this feature documented properly with an example of how to bypass our automatic injection feature. I have recommended we add this to the CSS Styling page of our Developers Documentation for easy future reference. Thanks again for taking the time to reach out. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.