Description

LESS-CSS is a powerful CSS pre-processor that lets you simplify and speed up CSS development and extend existing CSS functionality. The #BW LESS-CSS plugin integrates the .LESS language into WordPress and adds a simple admin interface to easily attach LESS stylesheets to your theme.

For more advanced developers, there is also a basic API that lets you directly access the LESS-to-CSS processor to manually attach your LESS stylesheets.

Files are relative to the theme root, and the less compiler will save the .css to the same path as the .less file.

If you are using @import to compile multiple stylesheets into a single file, such as Twitter’s Bootstrap, turn on developer mode while developing to force the stylesheets to recompile every time the page is loaded. If developer mode is off, imported stylesheets will not be recompiled unless you re-save the main stylesheet. If manually including less files using bw_less_css(), set ‘force’ => true argument.

FAQ

How do I include mobile stylesheets?

The ‘mobile’ checkbox marks a file as mobile, meaning it will only be included when your website is viewed on the devices checked under ‘Detect mobile for.’ If you also specify custom media for a mobile stylesheet, that file will be included on non-mobile devices, for the purpose of responsive design. You can specify which devices you want to serve mobile to under ‘Detect mobile for’

Can I use the plugin’s mobile detection elsewhere in my site?

Yes. To make use of the mobile detection, including device-specific detection under ‘Detect mobile for’, call bw_is_mobile(), which will return a boolean (true or false).

Contributors & Developers

“BW LESS-CSS” is open source software. The following people have contributed to this plugin.