public
Last active

wp-less to style.css

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8 9 10
add_filter( 'wp_less_cache_path', 'my_less_cache_path' );
add_filter( 'wp_less_cache_url', 'my_less_cache_url' )
 
function my_less_cache_path( $path ) {
return get_stylesheet_directory();
}
 
function my_less_cache_url( $url ) {
return get_stylesheet_directory_uri();
}

Missing a semi-colon on the second add_filter

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.