Support » Plugin: Caxton - Create Pro page layouts in Gutenberg » No need of Fontawesome

  • christoph-ED


    I want to use the plugin but it loads the Font Awesome.
    I dont need it.
    How can i use my own on the server or generally deque/deregister it?

Viewing 10 replies - 1 through 10 (of 10 total)
  • I asked exactly this question of GetWid today! Maybe the answer there can help you

    Plugin Author shramee


    Hi @webagenturerding @brigdonnwr,

    Now our icon picker uses SVG instead of font awesome elements with fa classes. 🙂

    And we only load font awesome if we find font awesome classes used on the page for backwards compatibility.

    That’s great! Thankyou, really helpful for creating privacy-aware sites 🙂

    Thread Starter christoph-ED


    i have another improvement idea:
    ultimate addons have very clever loading architect.
    so i can choose what blocks i will use in settings.
    and they only load this and only load this css …
    i love this cause on my pages i try to solve every kb.

    e.g. for big sites it can help really much.

    Ghost Kit also offers the turning off of blocks. Love that feature.

    Plugin Contributor Jamie Marsland



    You can manage blocks in the block manager , but maybe you mean more than this?


    Plugin Author shramee


    Hi @webagenturerding,

    As of the latest version all our code now doesn’t have any 3rd party dependencies, (Vanilla JS and CSS) and is like 14k in all. We rewrote our code to have no jQuery dependency.

    Code for other blocks is loaded on demand when those blocks are used on the page.

    Hope that answers your concerns. To keep number of requests in check and avoid FOUCs, we add minimal base script/style file and add-on scripts/styles (sliders/carousels) queued when needed.

    Thread Starter christoph-ED


    ok that sounds pretty good.
    latest version is from 1 month ago?

    Could you add a filter to avoid loading Fontawesome? I’m getting a conflict when loading fontawesome pro so I can’t display certain chars if I don’t comment out the line CaxtonUtils.asset( '//' ); in caxton\assets\caxton-utils.js

    Thanks @jamesmarsland & @shramee !

    • This reply was modified 1 year, 10 months ago by Ben Andersen. Reason: adding participants

    Hi @shramee,

    I’m using Caxton (v1.21) for my site and it looks like it is still calling Font Awesome for the All.Css (, when running a GT Metrix speed test or other speed tests.

    I’ve removed the FA Brands for social icons and have replaced the shopping cart icon (FA Solid 900) with an icon image I’m hosting via the site.

    Using the Asset CleanUp plugin, I’ve unloaded Font Awesome site wide and have added the below code to functions.php.

    I don’t want to use Font Awesome, because it is slowing down my site load speed.

    Any support and tips would be greatly appreciated.


    Code added to Functions.php

    //* TN Dequeue Styles - Remove Font Awesome from WordPress theme
    add_action( 'wp_print_styles', 'tn_dequeue_font_awesome_style' );
    function tn_dequeue_font_awesome_style() {
          wp_dequeue_style( 'fontawesome' );
          wp_deregister_style( 'fontawesome' );
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘No need of Fontawesome’ is closed to new replies.