WP-LESS
LESS is a templating language based on top of CSS. It provides numerous enhancements to speed up development and make its maintenance easier. Theme developers can even bundle the plugin without worrying about conflicts: just include the special bootstrap-for-theme.php and read its instructions. Feat
About this tool.
LESS is a templating language based on top of CSS. It provides numerous enhancements to speed up development and make its maintenance easier.
Theme developers can even bundle the plugin without worrying about conflicts: just include the special bootstrap-for-theme.php and read its instructions.
Features
- Variables
- Mixins (inheritance of rules)
- Nested Rules (write less, do more)
- Accessors (inherit a value from a specific rule)
- Functions (logic operations for dynamic results)
The plugin lets you concentrate on what you need: coding CSS. Everything else is handled automatically, from cache management to user delivery. Seriously.
Documentation
Advanced topics on how to use the plugin API are available on the Github project documentation .
Requirements
The sole requirement is to use WordPress API and LESS convention: the .less extension.
Minimal Requirements : PHP 5.3 and WordPress 3.2. Relies on : Less.php , plugin-toolkit .
Notice : in case you’d like to drop the usage of this plugin, it’s safe to do it. You will just need to convert back your stylesheets to CSS.
A closer look.
Getting started.
Automatic
- 01Search for the plugin name ( WP-LESS )
- 02Click on the install button
- 03Activate it
Manual
- 04Download the latest stable archive of the plugin
- 05Unzip it in your plugin folder (by default, wp-content/plugins )
- 06Activate it through your WordPress plugins administration page
Frequently asked questions.
Lots of efforts have been done to write a consistent documentation to address issues you may encounter.
It covers topics like path customization, declaring LESS variables from PHP, creating new LESS functions etc.