compiled css path issue.
-
Hi,
I am having issue with compiled css files path.I am using
`if (class_exists(‘WPLessPlugin’)) {
$lessConfig = WPLessPlugin::getInstance()->getConfiguration();// compiles in the active theme, in a ‘css’ subfolder
$lessConfig->setUploadDir(get_stylesheet_directory() . ‘/css’);
$lessConfig->setUploadUrl(get_stylesheet_directory_uri() . ‘/css’);
}`
to set my css path, good thing is its now saving compiled css files in my theme folder named “css”, but bad things is its somehow saving it inside
/wp-content/themes/my-theme/css/my-theme/less/
my .less files exist inside/my-theme/less/
Please suggest any solution. I have looked at code but was unable to trace how I can fix it without modifying core.
I found this filter “wp-less_stylesheet_save” but not sure how I can use it to change path.
Note: I am first registering my styles and then enqueue it. (not directly enqueueing without registering.
Thanks.
- The topic ‘compiled css path issue.’ is closed to new replies.