bootstrap-sass icon indicating copy to clipboard operation
bootstrap-sass copied to clipboard

glyphicons are not showed on bootstrap sass

Open Gusduenas opened this issue 12 years ago • 12 comments

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

Gusduenas avatar Oct 20 '14 17:10 Gusduenas

also I have to comment that the bullets aren't showing also.

Gusduenas avatar Oct 20 '14 18:10 Gusduenas

Having the same issue here

dpindrys avatar Oct 21 '14 02:10 dpindrys

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

Gusduenas avatar Oct 21 '14 19:10 Gusduenas

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

Gusduenas avatar Oct 30 '14 19:10 Gusduenas

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.

hamishwillee avatar Oct 30 '14 22:10 hamishwillee

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.

reedyrm avatar Nov 22 '14 18:11 reedyrm

@twbs/sass Seems like https://github.com/twbs/bootstrap-sass#fonts already sufficiently covers this?

cvrebert avatar Jan 12 '15 18:01 cvrebert

That's right, closing this, if you are having problems please have a look at the Readme section linked in the comment above

glebm avatar Jan 14 '15 21:01 glebm

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.

ianheggie avatar Jun 22 '17 08:06 ianheggie

Thanks @ianheggie, you've just saved me a lot of head-scratching :-)

siwilkins avatar Sep 12 '17 16:09 siwilkins

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 ;)

saidsoualhi avatar Nov 01 '17 12:11 saidsoualhi

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.

jerome-diver avatar Jul 25 '18 02:07 jerome-diver