waldo's avatar
Level 1

Glyphicon icons not found

Hi, I've included glyphicon icons in my webapp in this way:

<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>

but they are not shown because the resource is not found.

Below the details of the HTTP 404:

GET http://localhost:8000/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff2 [HTTP/1.0 404 Not Found 168ms]
downloadable font: download failed (font-family: "Glyphicons Halflings" style:normal weight:normal stretch:normal src index:1): status=2147746065 source: http://localhost:8000/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff2?448c34a56d699c29117adc64c43affeb
0 likes
5 replies
Snapey's avatar

So if the file is not in public/fonts/vendor...... etc where is it?

waldo's avatar
Level 1

I don't know. I have a standard installation of Laravel. Do I need to install or configure something else?

tisuchi's avatar

You may simply use CDN for that in your html head.

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet">

Now try-

<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
1 like
waldo's avatar
Level 1

@Snapey: What I found is that folder your_project/public/fonts is missing. I create a standard laravel project using composer. Should I do something else?

Laravel version is 5.5.12.

@tisuchi: I have already tried that solution, but it override the stylesheet of the standard Laravel installation.

1 like

Please or to participate in this conversation.