0

I am trying Bootstrap 7.x-3.6 theme.

But sub-theme for some reason is not working. I did follow the same procedure as described on the Documentation page for Drupal 7.

I am describing here, what I did,

1. Installed fresh drupal 7.50 on localhost.
2. Down loaded Bootsrtap 7.x-3.6 and enabled but not make is default.
3. Sub-theme: I did copy sass folder from the starterkits. Paste in /theme folder and rename with mysubtheme. Rename the file-name sass.starterkit with mysubtheme.info. And inside that changed the 'name'.

enter image description here

Final image of /theme folder

enter image description here

4. Downloding Bootstrap: Downloaded bootstrap file from here as decribed in following image. I did select Sass option. Pasted to /mysubtheme folder, rename with bootsrtap.(even to check, I did try all three options one by one, but same result)

enter image description here

5. Downloaded Jquery update module also and enabled, default version was 1.50.

Now, Till this stage the site shows content but not a basic theme formatting. Comparative image below.

enter image description here

What could be the reason or I am missing something.

16
  • 2
    Well I could go out on a limb and say you have to compile the SASS.
    – Jeff Burnz
    Aug 14, 2016 at 13:43
  • @JeffBurnz Hi, Well I have already compiled the SASS, as I am using other themes, i.e. Adaptive theme for other trial site which is in same htdocs of MAMP, that all working well with SASS. Do I have to do some special for this, recompile?
    – CodeNext
    Aug 14, 2016 at 13:48
  • Have you set the bootstrap theme as your base theme in your .info file? Aug 14, 2016 at 14:11
  • @MarkConroy Yes, it is reading like base theme = bootstrap.
    – CodeNext
    Aug 14, 2016 at 14:13
  • 1
    You should add information about compiling SASS, and the name, number of lines in, and location of the resulting .css-file to your question. Your "Base theme" looks OK, but your "Subtheme with sass" screenshot looks like there is no css present, so something has gone wrong with the sub-theming - but it is impossible to pinpoint what it is without knowing more about the css generated for your sub-theme. Also, what subdirectories to you have in your subtheme (is there a css subdirectory)? Have you removed the CDN? Aug 14, 2016 at 14:28

1 Answer 1

0

Thanks to @JeffBurnz @MarkCornoy and @FreeRadical for their inputs.

The following setting needs to be disable in mysubtheme.info(sass.starterkit A original file). And may be @FreeRadical want to point out same thing by asking "Have you removed the CDN?" in the his comment.

; Disable the CDN provider so compiled source files can be used.

settings[bootstrap_cdn] = ''

After commenting out settings[bootstrap_cdn] = '' it does take the base theme setting.

Any more suggestion appreciated. For now, this solution works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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