print media style sheet not getting minified
-
I load CSS files on my site dynamically based on content being displayed (post, page, category, etc.). For this reason, none of my css files have import or link statements.
I notice, however, that the last CSS (one for print media specifically) never gets included in the minification. It is untouched.
Before minification turned on:
<head> <meta charset="UTF-8"> <meta content="width=device-width" name="viewport"> <link href="https://site.local/wordpress/xmlrpc.php" rel="pingback"> <link href="https://site.local/wordpress/wp-content/themes/twentyelevenchild/style.css" media="all" type="text/css" rel="stylesheet"> <link href="https://site.local/wordpress/wp-content/themes/twentyelevenchild/css/category-world-yoga-convention.css" media="screen" type="text/css" rel="stylesheet"> <link href="https://site.local/wordpress/wp-content/themes/twentyelevenchild/css/print.css" media="print" type="text/css" rel="stylesheet">
After minification turn on:
<head> <link media="all" href="https://site.local/wordpress/wp-content/cache/minify/000000/bYxBDsIwDMA-tCjbi1DIQtcpJKXNGP09FbtytGx5xjjFoovKW4y3rCu26CrT_Mdwa8gUkrx2OL3qCt0TAbuNJrLbtOD-OmRodlUqTcDhSZEZNactbtd8uejuHyh6tN_4Qca9kMVAV69DfgE.css" type="text/css" rel="stylesheet"> <meta charset="UTF-8"> <meta content="width=device-width" name="viewport"> <link href="https://site.local/wordpress/xmlrpc.php" rel="pingback"> <link href="https://site.local/wordpress/wp-content/themes/twentyelevenchild/css/print.css" media="print" type="text/css" rel="stylesheet">
I have tried the different “@import handling:” settings, and they all produce same results as above. “Combine only” does combine all CSS into single file.
Any ideas why this may be happening?
- The topic ‘print media style sheet not getting minified’ is closed to new replies.