Remove Font-Awesome MaxCDN Link & Load Locally

by squidg   Last Updated January 11, 2019 12:08 PM

MaxCDN is slowing down my site so I want to load font-awesome locally but I can't seem to write the correct function to remove it.

function remove_unwanted_css(){
wp_dequeue_style(‘font-awesome’, ‘https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css’);
}
add_filter(‘wp_print_styles’, ‘remove_unwanted_css’);
Tags : functions fonts


Related Questions


Updated April 05, 2018 05:08 AM

Updated November 18, 2017 23:08 PM

Updated February 26, 2017 05:08 AM

Updated April 27, 2018 04:08 AM

Updated December 26, 2018 21:08 PM