WordPress wp_enqueue stylesheet with media query

I use a media query in my html to load a new stylesheet for the grid if needed. Can I translate this to work within my functions.php?

wp_register_style('html5blank', get_template_directory_uri() . '/style.css', array(), '1.0', 'all');
wp_enqueue_style('html5blank'); // Enqueue it!


<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/1140.css" type="text/css" media="all and (min-width: 1200px)" />

Related posts

Leave a Reply

1 comment