• Resolved takamu

    (@takamu)


    Hello,

    I wonder how to remove this css file:

    example.com/wp-content/plugins/jetpack/modules/widgets/social-icons/social-icons.css

    this file slows my “Google PageSpeed Insights” score.

    I don’t use any widget of jetpack. and I added this code into functions.php:
    wp_deregister_style( 'social-icons' );

    but I can’t remove social-icons.css yet.

    Any help is appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • SrDusky

    (@srdusky)

    Code below worked for me.

    function jetpack_remove_styles_777() {
    wp_dequeue_style(‘jetpack-widget-social-icons-styles’);
    }
    add_action( ‘wp_enqueue_scripts’, ‘jetpack_remove_styles_777’, 11 );

    Thread Starter takamu

    (@takamu)

    Excellent!! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove “social-icons.css”’ is closed to new replies.