Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap glyphicons are missing

I don't know why, but my glyphicons from Bootstrap (3.3.7) are missing, they are being substituted by a normal and ugly square. Here is an example of code that calls a missing glyphicon:

        <button type="button" class="btn btn-default">
          <span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
        </button>

And here it is the Bootstrap part that contains glyphicon's font:

 @font-face {
  font-family: 'Glyphicons Halflings';

  src: url('../fonts/glyphicons-halflings-regular.eot');
  src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
like image 679
Vithor Escames Avatar asked Mar 06 '26 12:03

Vithor Escames


2 Answers

you need to update it , use cdn link, add this to your code

 <link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
like image 174
Otávio Barreto Avatar answered Mar 08 '26 01:03

Otávio Barreto


You need to download Bootstrap in this link https://getbootstrap.com/docs/4.5/getting-started/download/, after download you need to put the fonts in your project. In the new version don't have fonts in Bootstrap package, but you can download in the older version.

like image 41
Vinícius Avatar answered Mar 08 '26 00:03

Vinícius



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!