/ Published in: PHP

How to insert the less preprocessor script in WordPress Websites and Blogs
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** 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 **/
URL: http://eckstein.id.au/12651/general-technology/instructions-less-css/
Comments
