Gulp task refactored for in-place CSS minification
This commit is contained in:
@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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' );
|
Reference in New Issue
Block a user