With the help of following snippet, you will be able to use LESS in WordPress.
1 2 3 4 5 6 7 8 9 | /** START - ADD LESS TO WORDPRESS - http://eckstein.id.au **/ add_action( 'wp_head' , 'itsb_lesscss' ); function itsb_lesscss() { ?> <link rel="stylesheet/less" type="text/css" href="<?php echo bloginfo('url'); ?>/wp-content/mu-plugins/style.less"> <script src="//cdnjs.cloudflare.com/ajax/libs/less.js/1.3.0/less-1.3.0.min.js" type="text/javascript"></script> <?php } /** END - ADD LESS TO WORDPRESS **/ |
Snippet Source/Credit: eckstein.id.au