Skip to content

Instantly share code, notes, and snippets.

@kopepasah
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kopepasah/9592441 to your computer and use it in GitHub Desktop.
Save kopepasah/9592441 to your computer and use it in GitHub Desktop.
This Gist contains code for my 'Easily Add Less CSS Pre-Processor to any WordPress Theme' tutorial on kopepasah.com.
git submodule add git@github.com:kopepasah/wp-theme-toolkit-less.git lib/less
add_filter( 'twentyfourteen_enable_less_dev', '__return_true' );
add_filter( 'twentyfourteen_enable_minified_styles', '__return_true' );
add_filter( 'twentyfourteen_enable_less', '__return_true' );
require_once( dirname( __FILE__ ) . 'lib/less/init.php' );
require_once( dirname( __FILE__ ) . '/less/init.php' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment