Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font Awesome not working in offline mode

i am using font-awesome icons for publishing my HTML,CSS templates. They are working fine when i have the live link but when i download the CSS file and include that in my pages icon disappears.

Live Path : <link href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">

Local Path : <link href="css/font-awesome.css" rel="stylesheet">

How can i use the font awesome in offline mode?

like image 514
Mehar Avatar asked Jun 14 '15 17:06

Mehar


4 Answers

I think you didn't download fonts or you used the wrong path. You can download the latest version font awesome at https://fontawesome.com/download. And don't forget check your path!

Hope this helps.

like image 162
Viet Tran Avatar answered Oct 06 '22 23:10

Viet Tran


Did you embed FontAwesome font into your project? your structure must be like this:

[+]assets
    [+]css
        font-awesome.css
    [+]js
        demo-file.js
    [+]fonts
        fontawesome-webfont.eot
        fontawesome-webfont.svg
        fontawesome-webfont.ttf
        fontawesome-webfont.woff
        fontawesome-webfont.woff2
index.html
sample.html
whatever.html

after that, you can use FontAwesome locally.

like image 18
Mohammad Javad Akbari Eidgahi Avatar answered Oct 07 '22 07:10

Mohammad Javad Akbari Eidgahi


You also need to download the fonts themselves as well...It is a font, like any other...So, go to fontawesome website, follow the instructions and download css + fonts :)

like image 7
nikola_wd Avatar answered Oct 07 '22 07:10

nikola_wd


Could be a pathname problem Try:

<link href="./css/font-awesome.css" rel="stylesheet">
like image 3
ScaisEdge Avatar answered Oct 07 '22 06:10

ScaisEdge