• Hi there,

    In my header there is a line of code:
    mysite.com/wp-content/plugins/types/vendor/toolset/toolset-common/res/lib/font-awesome/css/font-awesome.min.css?ver=4.7.0

    It’s not working as it’s a very old version and it’s causing all my font awesome icons not to show – how do I remove this code or even update it so it calls the current 5+ versions?

    Thank you.

Viewing 1 replies (of 1 total)
  • Anonymous User 14808221

    (@anonymized-14808221)

    Hi, I reported this a while ago and we will change our handle with which we register our scripts so these problems will be resolved.

    Meanwhile you can create a Child Theme and use a custom function to enqueue the correct scripts (the ones you want). Something like:

    function fix_different_version_same_handle_script() {

    //Dequeue/Deregister any conflicting script
    wp_dequeue_style( 'font-awesome' );
    wp_deregister_style( 'font-awesome' );

    //Re-enqueue the desired script with a different handle - change $src adequately)
    wp_enqueue_style('font-awesome-compatible', get_template_directory_uri() . '/assets/font-awesome-v5/css/fontawesome-all' . $min . '.css');

    }
    add_action( 'wp_enqueue_scripts', 'fix_different_version_same_handle_script', 20 );

Viewing 1 replies (of 1 total)

The topic ‘Font Awesome Issues’ is closed to new replies.