你的两个选择是add your own stylesheet 重新定义插件的样式,或通过将样式表出列来完全删除插件的css文件(假设插件通过API正确添加了样式表)
function wpd_my_theme_css() {
// dequeue plugin css with same handle it is enqueued with
wp_dequeue_style( \'plugin_css_handle\' );
}
// priority must by a higher number than the css is added on
add_action( \'wp_enqueue_scripts\', \'wpd_my_theme_css\', 9999 );
您必须查看特定插件的代码,以获得关于此处可能出现的情况的最终答案。