Here is a simple plugin. It use CSS code and importing it. The problem is that in the HTML file there are several external CSS files.
My goal is to compress them in one CSS file. Here's the code from the plugin, to my mind, it imports the CSS file.
I already copied the plugins CSS code and transferred it to main CSS file. But how to delete the code plugin so that it will never import its CSS file?
function addStylesAndScripts()
{
wp_enqueue_style('zvr-font', 'https://fonts.googleapis.com/css?family=Open+Sans');
wp_enqueue_style('zvr-style', trailingslashit(plugin_dir_url(__FILE__)) . 'assets/css/zvr-styles.css', array() , "1.0.3");
wp_enqueue_script('zvr-script', trailingslashit(plugin_dir_url(__FILE__)) . 'assets/js/zvr-script.js', array(
'jquery'
) , "1.0.3");
$localize = array(
'ajax_url' => admin_url('admin-ajax.php') ,
);
wp_localize_script('zvr-script', 'zvr_data', $localize);
}
}