Advertisement
Misplon

Use CDN for Font Awesome

Jun 7th, 2016
29
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None
  1. function ultra_setup_extras() {
  2.     wp_dequeue_style( 'font-awesome' );
  3.     wp_enqueue_style( 'cdn-font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css', array(), '4.6.3' );
  4. }
  5. add_action( 'wp_enqueue_scripts', 'ultra_setup_extras', 80 );
Advertisement
RAW Paste Data Copied
Advertisement