I am loading stylesheets into my wordpress theme using wp_enqueue_style(), like this:
wp_enqueue_style(
'custom-stylesheet',
get_stylesheet_directory_uri() . '/stylesheets/style.css',
array(),
'1.0.0'
);
My goal is to use one stylesheet file for each resolution or media query.
So I found the following solution :
<link rel="stylesheet" media='screen and (min-width: 140px) and (max-width: 380px)' href="style.css"/>
At this point, I'll need to use media attribute on my <link> tag.
How can I use it in wordpress ?