I've opened a fresh Bootstrap sub-theme. This sub-theme is empty of any styles. What is the right way to import the CDN-mediated style sheets into the (now-empty) Style.css of the sub-theme?

It's a long story why I don't want to use the Bootstrap CDN in that particular case but I really just want everything to be local.

How could I import the basic Bootstrap Stylesheets into my Sub-theme's Style.css file and finally use everything local?



You can use Bootstrap Library module to do that. quoting from the project page:

This module is fully compatible with the Bootstrap Theme. If you wish, use it as an alterative to the CDN loading.

  • Isn't there a manual way? Just in case? – JohnDoea Sep 8 '15 at 22:38
  • 1
    there is take a look at your subtheme.info file and instruction in this page this page. but I think using the library is more flexible – sam2de Sep 8 '15 at 22:54
  • After enabling, should I now open a directory at sites/all/libraries by the name "Bootstrap" (all lowercase I guess) and extract a clean Bootstrap-install from getbootstrap.com ? That's all? – JohnDoea Sep 9 '15 at 6:38
  • 1
    Yes, that's all. – sam2de Sep 9 '15 at 12:16
  • In getbootstrap.com here: getbootstrap.com/getting-started/#download there are 3 download options: Bootstrap, source code, and SASS. I guess "Bootstrap" which is compiled is what I need but I may be wrong: Could you please update your answer with these details and say what is most fitted and how to set the folders inside the newly-created "bootstrap" library folder? Thank you, – JohnDoea Sep 10 '15 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.