glyphicons are not showed on bootstrap sass
Hello Ive been trying to make this glyphicons to work with my bootstrap sass, I change the bootstrap-variables file (not sure if erase the// from the sass file) but so far I cannot get the glyphicons to work. I also change the path to ../bootstrap but nothing at all, someone please help me. using compass and sass
also I have to comment that the bullets aren't showing also.
Having the same issue here
finally I got the answer, turns out that something in the css of sass is making an absolute path instead of a relative, I did this work out, on my _bootstrap-variables.scss change the icon-font-path to "fonts/bootstrap/" and in the style.scss I did this.
@font-face { font-family: 'Glyphicons Halflings'; src: url(#{$icon-font-path}#{$icon-font-name}.ttf) format('truetype'); src: url(#{$icon-font-path}#{$icon-font-name}.eot?#iefix) format('embedded-opentype'), url(#{$icon-font-path}#{$icon-font-name}.woff) format('woff'), url(#{$icon-font-path}#{$icon-font-name}.ttf) , format('truetype'), url(#{$icon-font-path}#{$icon-font-name}.svg##{$icon-font-svg-id}) format('svg'); }
so it will be after @import anything on the style.scss file
This will override what bootstrap-sass is doing. and you will have a new relative path for your glyphicons I hope this helps.
On Mon, Oct 20, 2014 at 10:42 PM, David Pindrys [email protected] wrote:
Having the same issue here
— Reply to this email directly or view it on GitHub https://github.com/twbs/bootstrap-sass/issues/746#issuecomment-59871185.
Gustavo Duenas Creative Director - Web Designer Jacksonville, Fl
hi Jonathan, but I'm not using rails, that is ok, anyway?
On Thu, Oct 30, 2014 at 1:33 AM, Jonathan Rochkind <[email protected]
wrote:
Are you @import "bootstrap-sprockets" in your .scss? If you don't, that's one thing that can cause this.
Review the README section on Rails, note that it instructs "bootstrap-sprockets must be imported before bootstrap for the icon fonts to work."
This can be easy to miss -- some older versions of bootstrap-sass did not require this (I forget exactly which version it became required in). I got caught by this too once.
— Reply to this email directly or view it on GitHub https://github.com/twbs/bootstrap-sass/issues/746#issuecomment-61047715.
Gustavo Duenas Creative Director - Web Designer Jacksonville, Fl
Icons are displaying, but the wrong icon for the name. Is this the same problem?
I am running this using bower-fetched version in a jekyll environment.
I ran into the issue today using bower install to get the package. To get it to work, I re-downloaded all the bootstrap fonts from maxcdn (http://cdnjs.com/libraries/twitter-bootstrap) and placed them directly into my dist folder. After doing this my glyphicons started displaying.
@twbs/sass Seems like https://github.com/twbs/bootstrap-sass#fonts already sufficiently covers this?
That's right, closing this, if you are having problems please have a look at the Readme section linked in the comment above
FYI rails 5.0.2, I had to add $icon-font-path: "bootstrap/"; before
@import 'bootstrap-sprockets';
@import 'bootstrap';
For some (unknown) reason the icon-font-path was not being changed by bootstrap-sprockets.
Thanks @ianheggie, you've just saved me a lot of head-scratching :-)
Try changing the name of source folder of your glyphicons fonts files to "bootstrap", or create a new folder inside your fonts folder, with this name "bootstrap" and put your glyphicons fonts there. -- works for me ;)
i read you all, but sorry, could you be more precise please ? @saidsoualhi where is supposed to be the "fonts folder" and the "source folder of your glyphicons fonts" ? (I'm using Rails-5.2 actually, and what ever i done about change stylesheet import call the result stay the same: no glyphicons). @ianheggie, this didn't works for me. i also use jquery and jquery-ui gems... is it in relation ? @reedyrm "nd placed them directly into my dist folder"... please, where is this folder you are talking about ? @Gusduenas, sorry but it is not clear for me because i don't know originally what was your installation around bootstrap (from gem file, which one ? from source ? where ? etc...)
Thank you for your precisions.