Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include local file of font awesome 4.1 without using CDN?

With font awesome effect This is the effect with font awesome, i only can get it when i using font awesome 4.1 CDN)

enter image description here Using downloaded files, I included the fonts folder and font-awesome.css, but still no icon appear.

enter image description here My link which is correct.

enter image description here The font-awesome.css file path, i didn't change anything.

enter image description here directory folders and files.

enter image description here inside of font folder.

enter image description here inside css folder.

********************************************************
I still didnt manage to get the icon show up, why??

like image 738
user3066033 Avatar asked Aug 24 '14 10:08

user3066033


People also ask

How do I use font awesome without Internet?

Go to font awesome official website and download free zip file, extract it and link this to your page, done..! To be able to use font awesome offline you would have to manually download the icons to your local computer. You should be able to find the required files from the font awesome website.

Is Fontawesome Cdn free?

font-awesome - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers.


2 Answers

  1. Download the fontawesome package from their website.
  2. Extract the package where you will find the fontawesome.css file.
  3. Copy this file to your css directory
  4. copy all the fonts files from the extracted fontawesome package to your fonts folder.
  5. Finally add the fontawesome.css to your html page by giving respective location of the css file.

AND Voila !

like image 142
Sithira Avatar answered Sep 21 '22 03:09

Sithira


Since I am using FontAwesome V5.3.1, I would like to update this answer since the folder structure was changed a bit in this version.

  1. First, download the FontAwesome v5.3.1 and extract the folder.
  2. Copy the all.min.css file from the CSS folder and add it in your stylesheets.
  3. Now, Copy the webfonts folder from FontAwesome extract and place it into your project one directory above to your all.min.css file. (Refer the image below)

enter image description here

Since all.min.css file refers to the webfonts folder now, we need to add this file along with the webfonts folder.

src: url("../webfonts/fa-brands-400.eot"); // This is how it is been referred now in all.min.css file. 

Thank you.

like image 30
Balasubramani M Avatar answered Sep 23 '22 03:09

Balasubramani M