Forum Replies Created

Viewing 1 replies (of 1 total)
  • I’m also having some issues with the compiled path customization.

    I’m using the code right from the git repository:

    // wp-content/themes/your-theme/functions.php

    if (class_exists(‘WPLessPlugin’)){
    $lessConfig = WPLessPlugin::getInstance()->getConfiguration();

    // compiles in the active theme, in a ‘compiled-css’ subfolder
    $lessConfig->setUploadDir(get_stylesheet_directory() . ‘/compiled-css’);
    $lessConfig->setUploadUrl(get_stylesheet_directory_uri() . ‘/compiled-css’);
    }

    What gets returned is below:

    <link rel=”stylesheet” id=”theme-main-css” href=”https://www.polynesian.dev/wp-content/themes/Polynesian/compiled-css/Polynesian/library/less/style-3dda9dfecc.css&#8221; type=”text/css” media=”all”>

    It looks like the plugin is adding the additional path info to href of the css. What I want to happen is have WP-Less compile the css and place in /Polynesian/compiled-css.

    My path to the less files are:
    wp_enqueue_style(‘theme-main’, get_stylesheet_directory_uri().’/library/less/style.less’);

    Any idea what’s going wrong??

Viewing 1 replies (of 1 total)