Hej,
I'm doing my first steps with LESS and tried to split my styles into different files.
But importing into my style.less seems not to work as it's supposed to be. (Probably I'm too dumb to see the mistake)
As long as my LESS-Code (do you say 'code'?) is in the style.less everything is perfectly fine, but as soon as I put it in a file in the subfolder '/less/' of my childtheme it's not taking effect anymore.
I tried
@import with a relative path
- it seems to cause a error while compiling, so the page isn't loading anymore.
and I tried an absolute path
- the page loads correctly but my style changes don't take effect + I can't find them in the compiled CSS-File.
( + I tried both ' and " )
Thank you very much in advance.
1 reply to this topic
#1
Posted 31 October 2012 - 09:23 AM
#2
Posted 31 October 2012 - 11:53 AM
You cant @import less files.
Add your less code to style.less file in the child theme dir, this gets auto compiled.
The /less/ folder is for less file overrides, if you place a dropdowns.less file in there, it will load this instead of the dropdowns.les file in the core framework.
If you really want to stick with your downloads.less filename, you will have to use a filter to add it to the LESS included files.
Add your less code to style.less file in the child theme dir, this gets auto compiled.
The /less/ folder is for less file overrides, if you place a dropdowns.less file in there, it will load this instead of the dropdowns.les file in the core framework.
If you really want to stick with your downloads.less filename, you will have to use a filter to add it to the LESS included files.
Also tagged with one or more of these keywords: LESS, child theme
Customizing AccordionStarted by mudgal , 17 May 2013 |
|
|
||
PageLines Framework →
Technical Support →
Twitter Bootstrap Not working properly when using LESSStarted by jflores1979 , 25 Apr 2013 |
|
|
||
LESS/ CSS changes not showing up...Started by jflores1979 , 25 Apr 2013 |
|
|
||
Branding TransparentStarted by couturemotion , 17 Apr 2013 |
|
|
||
child theme of a child themeStarted by swoda , 08 Apr 2013 |
|
|











