Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Framework Basics Prototyping with Bootstrap Adding a Dropdown Menu and Glyphicons

Leigh Maher
Leigh Maher
21,830 Points

Setting up Glyphicons path when using SASS

Hi,

I'm using SASS and when I try to use glyphicons, they don't show up. When I look in the CSS file, I can see that the path to the glyphicon fonts is not right. It's looking at this path, which I believe is the standard path to those files:

../fonts/bootstrap/

I used bower to install SASS so my fonts are located here:

../../bower_components/bootstrap-sass/assets/fonts/bootstrap/

In the variables.scss parital I've located the variable that deals with the file path for the fonts and updated it to:

$icon-font-path: if($bootstrap-sass-asset-helper, "../../bower_components/bootstrap-sass/assets/fonts/bootstrap/", "../fonts/bootstrap/") !default;

And set this to true:

$bootstrap-sass-asset-helper: true !default;

From what I've read online, this should work, but it doesn't.

Note: this is my local copy of the variables partial so I'm not overriding the original bootstrap partial.

Any idea of what I'm doing wrong?