Black Friday Sale! Get up to $30 off GP Premium! Learn more ➝

Reply To: Bandwidth and FontAwesome

Home Forums Support Bandwidth and FontAwesome Reply To: Bandwidth and FontAwesome

Home Forums Support Bandwidth and FontAwesome Reply To: Bandwidth and FontAwesome

#111006
Tom
Lead Developer
Lead Developer

WP.org requires us to bundle all files within the theme, so we can’t use the CDN.

However, you can simply dequeue our FontAwesome script and enqueue your own using the CDN.

Add this function to your child theme’s functions.php file:

add_action( 'wp_enqueue_scripts', 'generate_custom_scripts', 10 );
function generate_custom_scripts() {
      wp_dequeue_style( 'fontawesome' );
      wp_enqueue_style( 'fontawesome-cdn', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', false, '4.3.0', 'all' );
}

That should do it 🙂