Title: FontAwesome CDN
Last modified: August 21, 2016

---

# FontAwesome CDN

 *  Resolved [nyoz](https://wordpress.org/support/users/nyoz/)
 * (@nyoz)
 * [12 years ago](https://wordpress.org/support/topic/fontawesome-cdn/)
 * Hi, great plugin, thanks !
 * I was wondering if there was a way to load FontAwesome style sheet from CDN rather
   than local ?
 * Ex. : //maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css
 * I bet you have to extends `Menu_Icons_Type_Fonts` where `type = 'fa'` and change
   this
 *     ```
       public function __construct() {
       		$this->stylesheet = sprintf(
       			'%scss/font-awesome%s.css',
       			Menu_Icons::get( 'url' ),
       			Menu_Icons::get_script_suffix()
       		);
   
       		parent::__construct();
       	}
       ```
   
 * To this :
 *     ```
       $this->stylesheet = sprintf(
       			'//maxcdn.bootstrapcdn.com/font-awesome/ [CHECK ICON $version] /css/font-awesome.min.css');
       }
       ```
   
 * But how to make that the most properly, and overall plugin update compatible ?
 * Thanks for your help and your plugin ! 🙂
 * [https://wordpress.org/plugins/menu-icons/](https://wordpress.org/plugins/menu-icons/)

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

 *  [Dzikri Aziz](https://wordpress.org/support/users/kucrut/)
 * (@kucrut)
 * [12 years ago](https://wordpress.org/support/topic/fontawesome-cdn/#post-5163923)
 * Hey!
 * Good question. I didn’t think of this before. In the next plugin update, I’ll
   make the whole properties of each icon types filterable. For now, You can override
   the stylesheet source by adding this into your theme’s `functions.php` or preferably
   a [mu-plugins file](http://codex.wordpress.org/Must_Use_Plugins):
 *     ```
       add_action( 'wp_enqueue_scripts', '_my_styles', 5 );
       function _my_styles() {
       	wp_register_style(
       		'fa',
       		'//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css',
       		false,
       		'4.1.0'
       	);
       }
       ```
   
 *  [Dzikri Aziz](https://wordpress.org/support/users/kucrut/)
 * (@kucrut)
 * [12 years ago](https://wordpress.org/support/topic/fontawesome-cdn/#post-5163927)
 * And here’s how you filter the icon type properties (after the update’s released,
   of course):
 *     ```
       add_filter( 'menu_icons_fa_props', '_my_fontawesome_props' );
       function _my_fontawesome_props( $props ) {
       	$props['stylesheet'] = '//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css';
   
       	return $props;
       }
       ```
   
 *  Thread Starter [nyoz](https://wordpress.org/support/users/nyoz/)
 * (@nyoz)
 * [12 years ago](https://wordpress.org/support/topic/fontawesome-cdn/#post-5163941)
 * Great, thanks !
 * I’ll wait for the update then, as the site is still in development.
    Once I’d
   have tried, I’ll come back here to post the follow up. 😉
 * Cheers !

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

The topic ‘FontAwesome CDN’ is closed to new replies.

 * ![](https://ps.w.org/menu-icons/assets/icon-128x128.png?rev=2526860)
 * [Menu Icons by Themeisle – Add Icons to Navigation Menus](https://wordpress.org/plugins/menu-icons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/menu-icons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/menu-icons/)
 * [Active Topics](https://wordpress.org/support/plugin/menu-icons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/menu-icons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/menu-icons/reviews/)

## Tags

 * [cdn](https://wordpress.org/support/topic-tag/cdn/)
 * [FontAwesome](https://wordpress.org/support/topic-tag/fontawesome/)

 * 3 replies
 * 2 participants
 * Last reply from: [nyoz](https://wordpress.org/support/users/nyoz/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/fontawesome-cdn/#post-5163941)
 * Status: resolved