Gulp task refactored for in-place CSS minification

This commit is contained in:
2017-12-05 19:39:17 +01:00
parent acb896e2f3
commit 15f02cbe83
5 changed files with 36 additions and 17 deletions

View File

@ -203,7 +203,7 @@ class WPLiveticker2 {
public static function enqueue_styles() {
// Only add if shortcode is present.
if ( self::$shortcode_present ) {
wp_enqueue_style( 'wplt-css', WPLT2_BASE . 'styles/wp-liveticker2.min.css', '', self::VERSION, 'all' );
wp_enqueue_style( 'wplt-css', WPLT2_BASE . 'styles/wp-liveticker2.css', '', self::VERSION, 'all' );
}
}

View File

@ -14,6 +14,6 @@ function wplt_enqueue_scripts() {
global $post;
// Register frontend CSS
if ( has_shortcode( $post->post_content, 'liveticker') )
wp_enqueue_style( 'wplt-css', WPLT_PLUGIN_URL . 'includes/css/wp-liveticker2.min.css', '', WPLT_VERSION, 'all' );
wp_enqueue_style( 'wplt-css', WPLT_PLUGIN_URL . 'includes/css/wp-liveticker2.css', '', WPLT_VERSION, 'all' );
}
add_action( 'wp_enqueue_scripts', 'wplt_enqueue_scripts' );