Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font Awesome Icons in Offline

Is there any way to use this in offline?

 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

I copy the link and save as font-awesome.min.css but still it is not working in offline like this link href="css/font-awesome.min.css" rel="stylesheet" type="text/css"

enter image description here

like image 510
truthlies uchiha Avatar asked Mar 29 '18 07:03

truthlies uchiha


1 Answers

Press the "Download free" button and make sure that you have the webfonts too. There is a web-fonts-with-css folder in the downloaded zip. Copy the fonts in your project and modify the paths for the fonts in your CSS to point to the location of the webfonts.

If you open the CSS linked in your questions you'll see that they have some imports with

url('../fonts/fontawesome-webfont.woff2?v=4.7.0')

modify these with the location of the fonts downloaded.

like image 113
Gigi Avatar answered Sep 21 '22 18:09

Gigi