I want to remove Bootstrap 3 Glyphicons in favor of Font Awesome. Since Font Awesome already includes most of the Glyphicons y don't want to include them and avoid duplicates and compatibility problems.
when I make a customized bootstrap download and I uncheck the glyphicon component, I still see some glyphicon references on the css file. http://getbootstrap.com/customize/
How can I disable those icons entirely ?
thanks
The best alternatives to GLYPHICONS are InVision , Artify and Sketch Icons.
Font Awesome works just as well without Bootstrap. Copy the font-awesome directory into your project.
But before you ask, the answer is yes – you can utilize glyphicons without having to use Bootstrap at all.
Those 6 remaining Glyphicons references in the compiled CSS are regarding the optional use of Glyphicons for the next+prev buttons in the Carousel component. Since the declarations in question are also used for the non-Glyphicon next+prev buttons and represent an absolutely trivial amount of the total file size, I suggest simply ignoring them. For all practical purposes, you've already eliminated Glyphicons from your build.
If you absolutely must annihilate said references, then compile Bootstrap manually, beforehand removing the offending lines from bootstrap/less/carousel.less
and removing the @import "glyphicons.less";
line from bootstrap/less/bootstrap.less
.
Or you can just manually edit the CSS that the Bootstrap Customizer already generated for you, since the relevant deletions are trivial.
As i use bootstrap with Font Awesome, i go to customize page and I unchecked the glyphicon component as you did, but for some time i also add this lines of code at my ( override file ):
[class^="icon-"],
[class*="icon-"] {
background: none;
}
also you can open the main bootstrap file that you downloaded ( customized one ) and search for font-family: 'Glyphicons Halflings';
, then comment all the @font-face
.
Hope this will help you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With