1

In your child theme (which I am assuming you are using) functions.php file: function wpse_356175_assets() { wp_dequeue_style( 'media-queries' ); } add_action( 'wp_enqueue_scripts', 'wpse_356175_assets' ); Utilise wp_dequeue_style and or wp_deregister_style depending on how the stylesheet was registered/enqueued. If necessary adjust the priority of ...


1

Call me silly, but just found a way of getting it enqueued without having it as duplicate. @cjbj, I do really appreciate your help! If you enqueue it in the child theme's function.php file (at the end of the stylesheets enqueued in there for priority sake) and make sure you use the exact same handle as the theme is registering it with (look it up in the ...


1

Are you sure the version is included in style.css in the right way? In that case this should really work (hook with wp_enqueue_scripts): $theme_data = wp_get_theme(); wp_register_style('your-style-handle', get_template_directory_uri() . '/style.css', '', $theme_data['version'], 'all'); wp_enqueue_style('your-style-handle'); While developing you ...


Only top voted, non community-wiki answers of a minimum length are eligible