thom4parisot / wp-less

WordPress plugin which seemlessly compiles, caches and rebuilds your LESS stylesheets.
https://wordpress.org/plugins/wp-less/
88 stars 40 forks source link

Embedding into a Theme #104

Closed alvinkonda closed 2 years ago

alvinkonda commented 8 years ago

Hi,

Im embedding WP Less plugin into the theme , its works perfect, the only issue it seems that it doesn't cache the css file generated.

Any idea what im missing?

my code inside my functions.php is as following:

// WP Less initialize 
define('WP_LESS_COMPILATION', 'deep');

$less = WPLessPlugin::getInstance();
$less->dispatch();
alvinkonda commented 8 years ago

Also in case you want to quickly test here is our WP theme ready with WP-Less built in

https://github.com/officialtheme/official-flowershop

pixelbart commented 2 years ago

Closed, due to age. If the problem persists, please reopen the issue.

Always make sure that WP_DEBUG is not set to true, otherwise the files will be regenerated again and again.