Why theme doesn’t have latest Fontawesome and how enable it in Elementor

Fonawesome icons are in use on many sites on wordpress. There is reason for this – it allows to use font icons instead many images. But there is one problem with such way – icon fonts are heavy.

Well, our theme has 5.3.1 PRO Fontawesome icons, and it’s also heavy font but we think it’s almost on red line for weight and still have a lot of cool icons.

5.9 or newer version is really huge. We just can’t include so big font library in theme, because it will have weight more than whole site.

However, you can disable our fonts in theme and enable Elementor fonts. For this, you must delete next lines in functions/el_functions.php

// Font-awesome pro support
add_action( 'elementor/editor/before_enqueue_scripts', function() {
   wp_enqueue_style( 'rehubfontawesome', get_template_directory_uri() . '/admin/fonts/fontawesome/font-awesome.min.css', array(), '5.3.1' );
} );   
add_action( 'elementor/frontend/after_enqueue_styles', function () { 
    wp_dequeue_style( 'font-awesome' );
    wp_dequeue_style( 'font-awesome-5-all' );
    wp_dequeue_style('font-awesome-4-shim');
    wp_dequeue_script('font-awesome-4-shim');  
}, 15 );
add_action( 'elementor/editor/after_enqueue_styles', function () { 
    wp_dequeue_style( 'font-awesome' );
    wp_dequeue_style( 'font-awesome-5-all' );
    wp_dequeue_style('font-awesome-4-shim');
    wp_dequeue_script('font-awesome-4-shim');  
}, 15 );

Please, note, after this, we will not support any issues which you can have with icons