Did everything step-by-step, with Bootstrap 3.1.1 source, with or without LESS module - no luck. Only Method 2 works

Comments

milos.kroulik’s picture

Title: Method 1 does not work. Provide proper documentation » Method 1 for creating subthemes does not work

Please describe your issues in greater details. I am using method 1 and it works reasonably well.

playfulwolf’s picture

1. Created subtheme on folder /sites/mysite.com/themes/subtheme_name - everything works as Method 2 (CDN) also works when adding Bootstrap compiled source files through Bootstrap Library. So, no problems there.
2. Edit subtheme_name.info file:

;scripts[] = 'bootstrap/js/affix.js'
;scripts[] = 'bootstrap/js/alert.js'
;scripts[] = 'bootstrap/js/button.js'
;scripts[] = 'bootstrap/js/carousel.js'
;scripts[] = 'bootstrap/js/collapse.js'
;scripts[] = 'bootstrap/js/dropdown.js'
;scripts[] = 'bootstrap/js/modal.js'
;scripts[] = 'bootstrap/js/tooltip.js'
;scripts[] = 'bootstrap/js/popover.js'
;scripts[] = 'bootstrap/js/scrollspy.js'
;scripts[] = 'bootstrap/js/tab.js'
;scripts[] = 'bootstrap/js/transition.js'

removing ";"

3. Moving Bootstrap 3.1.1 files to /subtheme_name/bootstrap/README.md structure

It does not work here - as it should, no site styling here, but js files are addressed correctly. If I try using LESS:

4. Installing LESS module, the last dev or last stable (tried both)
5. Adding LESS php library, last 0.4.0 version
6. stylesheets[all][] = css/style.css to stylesheets[all][] = less/style.less

Site Getting LESS error:

#2235803: Provide documentation to use local LESS preprocessor instead of LESS Drupal module

markhalliwell’s picture

Component: Code » Documentation
Category: Task » Support request
Priority: Major » Normal
Status: Active » Closed (duplicate)
Related issues: +#2235803: Provide documentation to use local LESS preprocessor instead of LESS Drupal module

I does work. I use it all the time.

ohnoo’s picture

I use http://wearekiss.com/simpless and http://incident57.com/less/

I must be missing something, any help is much appreciated.

Download 3.1.1 as instructed https://github.com/twbs/bootstrap/releases

Do I have to modify anything in style.less?

I am stuck on where the document stated "Compile the ./less/style.less file. A new file should be generated as ./css/style.css."

For me when I compile I get the following error

[ThemeName]/less/style.less ParseError: Syntax Error on line 643 in / Application..../[ThemeName]/bootstrap/less/mixins.less:543:25 642 padding-right...

[ThemeName]/less/bootstrap.less ParseError: Syntax Error on line 643 in /Application/[ThemeName]/bootstrap/less/mixins

nbulka’s picture

ohnoo, You might be running into one of two issues. 1) You might need the source code here http://getbootstrap.com/getting-started/#download instead of the Bootstrap download. 2) You may need to replace the Drupal Bootstrap theme's variable.less with the new source 3.1.1 variable.less file. So replace sites/all/themes/YOUR_THEME/less/variable.less ... with ... sites/all/themes/YOUR_THEME/bootstrap/less/variable.less assuming these are the paths you are using.

naero’s picture

#5, specifically replacing the variable.less file. Thanks, @nbulka!