Created
May 27, 2014 06:30
-
-
Save Willem-Siebe/e7800869c3517d85614c to your computer and use it in GitHub Desktop.
Register LESS stylesheet using the WP LESS plugin, download it here: http://wordpress.org/plugins/wp-less/. Register stylesheet(s) explained here: https://github.com/oncletom/wp-less/wiki/Common-Usage#Registering%20a%20LESS%20stylesheet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Register LESS stylesheet using the WP LESS plugin, see https://gist.github.com/Willem-Siebe/e7800869c3517d85614c. | |
function wsis_enqueue_styles() { | |
wp_enqueue_style('style-less', get_stylesheet_directory_uri().'/less/style.less'); | |
} | |
add_action('wp_enqueue_scripts', 'wsis_enqueue_styles'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment