• Resolved tonyzyc

    (@tonyzyc)


    This font is making my pages to load very slowly.
    I would like to know how to remove/disable it.

    elementor/assets/lib/font-awesome/webfonts/fa-solid-900.woff2

    • This topic was modified 4 years, 2 months ago by tonyzyc.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    You can deactivate Google Fonts, Font Awesome, and Eicons for example, by adding the following lines of code to your functions.php file in your child theme.

    For Google Fonts:
    add_filter( ‘elementor/frontend/print_google_fonts’, ‘__return_false’ );

    For Font Awesome:

    add_action(‘elementor/frontend/after_register_styles’,function() {
    foreach( [ ‘solid’, ‘regular’, ‘brands’ ] as $style ) {
    wp_deregister_style( ‘elementor-icons-fa-‘ . $style );
    }
    }, 20 );

    For Eicons:

    add_action( ‘wp_enqueue_scripts’, ‘remove_default_stylesheet’, 20 );
    function remove_default_stylesheet() {
    wp_deregister_style( ‘elementor-icons’ );
    }

    Thread Starter tonyzyc

    (@tonyzyc)

    I added this code in functions.php, and clear the cache, but fa-solid-900.woff2 still exists

    add_action(‘elementor/frontend/after_register_styles’,function() {
    foreach( [ ‘solid’, ‘regular’, ‘brands’ ] as $style ) {
    wp_deregister_style( ‘elementor-icons-fa-‘ . $style );
    }
    }, 20 );
    • This reply was modified 4 years, 2 months ago by tonyzyc.
    Thread Starter tonyzyc

    (@tonyzyc)

    fixed, thanks

    • This reply was modified 4 years, 2 months ago by tonyzyc.
    • This reply was modified 4 years, 2 months ago by tonyzyc.
    gpsc

    (@gpsc)

    How did you fix it @tonyzyc ? thx

    @talmo your provided code doesn’t not helped. Could you recheck please.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove fa-solid-900.woff2’ is closed to new replies.