WordPress.org

Support

Support » Plugins and Hacks » #BW LESS-CSS » Ensure lesscss file included as last CSS file

Ensure lesscss file included as last CSS file

Viewing 1 replies (of 1 total)
  • Hi jlahm,

    You can change this line:
    add_action( 'after_setup_theme', 'lesscss_include' );
    Into this line:
    add_action('wp_enqueue_scripts', 'lesscss_include');

    Or even place the bw_less_css() function within your excisting enqueue function and customize the order in there:

    function roots_scripts() {
      wp_enqueue_style('roots_bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css', false, null);
      bw_less_css( 'assets/css/app.less', array( 'minify' => true ));
    }
    add_action('wp_enqueue_scripts', 'roots_scripts');

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Ensure lesscss file included as last CSS file’ is closed to new replies.
Skip to toolbar