WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Lessify WordPress

Combine the power of wordpress with the power of Less and create something awesome.

LessCSS

LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.Implements LessCSS in order to provide lots of interesting features for the theme development.

How to use ?

Just enqueue the LESS files (with .less extension) as it is usually done for the CSS ones, and the corresponding CSS files will automatically be generated and added to the site.

Important Notes

1.This plugin is based on lessphp by Leaf Corcoran

2.This plugin generates the css file under "/wp-content/uploads/lessify-cache" and therefore you need to define your images and any external links on you less file using the themeurl variable available with this plugin and if you use relative url then it will not work as we are saving the css file in a different location.

3.In order to use themeurl variable with the images you can do something like this

body{ background-image: url(@{themeurl}/images/bg.png); }

, the plugin also comes with another variable lessurl which provides the url where the less file is present.

4.To enqueue your less file just do like this

wp_enqueue_style( 'less-style', get_stylesheet_directory_uri() . '/style.less' );

Requires: 3.0 or higher
Compatible up to: 4.3.9
Last Updated: 1 year ago
Active Installs: 800+

Ratings

4.6 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1