Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi and thanks for your work on this great theme.
I used version 7.2 successfully on several sites, but can't get the 3.0 version to work.
Everything is ok when I setup the theme to use the CDN, but as soon as I try to use local files, no CSS is loaded.
The Javascript DOES work OK. It's just the CSS that for some reason fails to load.
I used method 2 and changed the stylesheet path in the .info file (less/style.css).
The bootstrap version I copied in the bootstrap subfolder inside the theme is 3.1.
Any hint would be appreciated.
Comments
Comment #1
markhalliwellFrom Bootstrap sub-theming "how to":
Comment #2
Countzero CreditAttribution: Countzero commentedSorry but I don't understand. The preprocessor is set up, the bootstrap version is OK (3.x.x includes 3.1 right ?) and compatible with version 7.x-3.0 accronding to the information you posted so I still don't see what I did wrong.
Besides, I used method 2 so I'm confused.
Comment #3
Countzero CreditAttribution: Countzero commentedOK, the wording of my first message was ambigous, hence the confusion :
This sentence :
... should read ...
Comment #4
Countzero CreditAttribution: Countzero commentedReopening after rewording of initial issue. With my apologies.
Comment #5
amorales@drupal.org.es CreditAttribution: amorales@drupal.org.es commentedHave you compile the style.less to style.css ?
For example for Less preprocessor based on Nodejs. On your subtheme_name/less folder:
lessc style.less > ../css/style.css
Done this, you have to check if subtheme_name/css/style.css has been updated.
Don´t forget to change the module .info file for disabling the BootstrapCDN
Comment #6
markhalliwellMethod 1 === Local source files
Method 2 === CDN
@amorales in #5 is correct, if you are using local source files, you should be compiling it. Bootstrap source files, by default, are not compiled. You should read more about how CSS preprocessors (compilers) work: LESS and/or SASS.