My webpage is now showing squares for the icons, not the icons itself.
I had the same page Page1.html
(I "copy-pasted" the code to Page2.html
), and Page2 is showing squares (with some characters inside ...), instead of icons.
Well, I checked the console of Page2, and here's what I found:
downloadable font: download failed (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed source: file:///D:/My Files/dist/font-awesome-4.4.0/fonts/fontawesome-webfont.woff2?v=4.4.0
font-awesome.min.css:4:14
downloadable font: download failed (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed source: file:///D:/My Files/dist/font-awesome-4.4.0/fonts/fontawesome-webfont.woff?v=4.4.0font-awesome.min.css:4:14
downloadable font: download failed (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:3): bad URI or cross-site access not allowed source: file:///D:/My Files/dist/font-awesome-4.4.0/fonts/fontawesome-webfont.ttf?v=4.4.0font-awesome.min.css:4:14
downloadable font: no supported format found (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:5) source: (end of source list)
Example of code using FontAwesome:
<ul class="navbar-nav">
<li>
<a href="Home.html"><span class="fa fa-home"></span>Home</a>
</li>
...
</ul>
I didn't modify anything on any FontAwesome files.
Could this be the normalize.css
, or any other stylesheets included in the webpage?
UPDATE:
So, Page2 is in a folder in the same level as Page1:
Page1: My Files/Page1.html
Page2: My Files/includes/Page2.html
... and my CSS Files: My Files/dist/ (CSS Files)
Now, I moved Page2 in the same folder as Page1, edited the <link href=""
parts of Page2, and the icons work as expected.
What could be the problem here? ...
- Thanks, in advance! :)