Great plugin!
One issue however. When a user stores his/hers .less files in a separate directory inside the WordPress themefolder, lets say a directory named ‘cssless’ (inputdirectory), and the output style.css resides directly in the themefolder (= outputdirectory) and this user creates a less mixin with a background-image with a relative url like:
background-image: url(images/gb_arrow.png);
The compiled version shows an absolute path which points to a ‘images’ directory inside the ‘cssless’ directory.
Thus the above example compiles to:
background-image: url(https://www.xxxxsite.nl/wordpress/wp-content/themes/themefolder/cssless/images/gb_arrow.png);
(you can test it for yourselves)
If I’m not mistaken, the path to the imagedirectory shouldn’t point to a ‘images’ directory inside to the ‘cssless’ directory, because the output .css file is located directly inside the themefolder, it should point to the ‘images’ directory directly in the themefolder. In fact, the original relative url (images/gb_arrow.png) shouldn’t change at all after compilation, there is no need for an absolute path when a user hasn’t entered one.
This issue is only a problem when input and output directories are different (you now have to store your background-images inside the directory where your .less files are located…).
Is it possible to correct this issue?
Kind Regards
]]>I am noticing that it is removing everything inside the @media queries….why?
]]>Any reason why I would be getting this msg when this plugin is activated ?
” FileError: ‘https://(path)/style.less’ wasn’t found (404) in style.less “
]]>How does this plugin work? Does it automatically compile the LESS to CSS every time there is a new version?
Does it automatically output the LESS/CSS stylesheet into the head section (since you say that it will show LESS to admins, but CSS to guests)?
And if it does automatically output the stylesheet, how should I include it in the head? Do I have to do wp_enqueue_style(), and use the link to the LESS file, or do I not include anything (and it is automatically added through wp_head())?
]]>