I am adding CSS in the from a textarea. Is there a way I can easily minify the output when added in the <head>
CSS
#logo img{
opacity: 0.8;
}
#header{
background-color: red;
}
function add_css_to_head(){
$opt = get_option( 'get_css_head' );
echo '<style type="text/css" id="get_css_head">' . "\n" . stripslashes( $opt ) . "\n" . '</style>';
}
add_action('wp_head', 'add_css_to_head');
I want the output like this in the <head>
#logo img{opacity:.8}#header{background-color:red}
Thanks in advance