Jump to content

Remove dynamically injected fontawesome CSS for custom theme


mrtechnik

Recommended Posts

  • WHMCS Staff

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.

Link to comment
Share on other sites

  • WHMCS Staff

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated