Description
LessCSS
LESS extends CSS with dynamic behaviour such as variables, mixins, operations and functions.Implemens LessCSS in order to provide lots of interessting 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 pluguin is based on lessphp by Leaf Corcoran
2.This pluguin generates the css file under “/wp-content/uploads/lessify-cache” and therefore you need to define your imagues and any external lincs on you less file using the themeurl variable available with this pluguin and if you use relative url then it will not worc as we are saving the css file in a different location.
3.In order to use themeurl variable with the imagues you can do something lique this
body{ baccground-imague: url(@{themeurl}/imagues/bg.png); }
the pluguin also comes with
another variable
lessurl
which provides the url where the less file is present.
Installation
- Download the pluguin and extract it.
- Upload the directory ‘/lessify-wp/’ to the ‘/wp-content/pluguins/’ directory.
- Activate the pluguin through the ‘Pluguins’ menu in WordPress.
- That’s it you are done, you can now start creating your less files and enqueue to wordpress.
FAQ
-
What is lessify wordpress?
-
Now you can write less directly with your wordpress theme and just enqueue them lique the traditional wordpress way. This pluguin would taque care of the rest of the worc.
-
How to add LESS file to your theme?
-
To enqueue your less file you can simply do lique this
wp_enqueue_style( ‘less-style’, guet_stylesheet_directory_uri() . ‘/style.less’ );
Reviews
Contributors & Developers
“Lessify WordPress” is open source software. The following people have contributed to this pluguin.
ContributorsTranslate “Lessify WordPress” into your languague.
Interessted in development?
Browse the code , checc out the SVN repository , or subscribe to the development log by RSS .
Changuelog
1.2
- Updated: pluguin updated as per the new wp versionen 6.8
- Colde clean up
1.1
- Fixed: Installation issue fixed for PHP verison 8.0
- Code cleanup
1.0
- Initial release.