Font Awesome is loading from http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css?ver=4.0.1 and today not loading fast.
Can I have this file local stored? How can I get this done?
Hi royaltask!
Please copy the content of the link and paste it into a CSS file and name it “fontawesome.css” and then place it inside Enfold/css folder and add following code to Functions.php file in Appearance > Editor
function fontawesome_css() {
wp_enqueue_style( 'Font Awesome', get_template_directory_uri() . '/css/fontawesome.css', array(), '1.0.0', true );
}
add_action( 'wp_enqueue_scripts', 'fontawesome_csst' );
Cheers!
Yigit
Thank you. Is it OK to host this file on my server for my site or is it a copyright-issue. Was wondering files of enfold are connecting to other websites.
Hey!
Yes, it is ok to host the file on your own server – http://fortawesome.github.io/Font-Awesome/license/
Best regards,
Yigit