Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8356249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:07:53+00:00 2026-06-09T10:07:53+00:00

I am using bootstrap-sass and the font-awesome ( https://github.com/littlebtc/font-awesome-sass-rails ) gems. I would like

  • 0

I am using bootstrap-sass and the font-awesome ( https://github.com/littlebtc/font-awesome-sass-rails) gems. I would like to override the bootstrap font setting from that of font-awesome.

From font-awesome’s site I can override the bootstrap defaults, if I just import if after bootstrap’s import.

@import 'bootstrap';
@import 'font-awesome';

I have done the above, but font-awesome’s font is not overriding. I have pushed my project on github – https://github.com/murtaza52/rails-base. The url is accessible on localhost:3000/posts

I will appreciate if someone can help me overriding bootstraps’s default font with those of font-awesome’s

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:07:54+00:00Added an answer on June 9, 2026 at 10:07 am

    Modify your application.css.scss to look like below

    @import "font-awesome";
    $baseFontFamily: 'FontAwesome';
    @import "bootstrap";
    
    ...
    
    @import "bootstrap-responsive";
    //@import "scaffolds";
    @import "posts";
    

    WHY?

    1. You move import "font-awesome" at the top and then define baseFontFamily because that’s what bootstrap uses to define font-family for all the elements. Check Typography and links block in the middle. If you import bootstrap after this, FontAwesome will be used by default.
    2. You should remove import "scaffolds"; line because scaffolds.css.scss will reset your font family for body element which will be inherited by every other element.

    If you can’t avoid importing it before bootstrap. I hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using bootstrap-sass in my rails app. I want to override a bootstrap-sass
Im setting up a rails app using the bootstrap-sass version for rails. In following
I am using bootstrap-sass, formtastic-bootstrap, rails 3.2, and ruby 1.9.3p0 on a new project.
I'm using Twitter Bootstrap 2.0.1 in a Rails 3.1.2 project, implemented with bootstrap-sass. I'm
I'm using bootstrap-sass to integrate Twitter Bootstrap in Rails but I'm having issues with
I am using jruby-1.6.6 with rails 3.2 currently. And I am using gem 'bootstrap-sass',
I am using Twitter bootstrap for Rails/SASS and have notice that it applies a
I am using using bootstrap-dropdown to generate a Dropdown menu. I would like to
I am using bootstrap-dropdown to generate a Dropdown menu. I would like to disable
I'm using the rails gem Bootstrap SASS, and was wondering how I can overwrite

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.