Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #368892

    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?

    • This topic was modified 9 years, 11 months ago by royaltask.
    #368899

    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

    #368901

    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.

    #368903

    Hey!

    Yes, it is ok to host the file on your own server – http://fortawesome.github.io/Font-Awesome/license/

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.