我的WordPress模板之一是completely different 并且需要不同的css和js(但仍然需要核心JQuery以及bootstrap 3 css/js)。
那么,我该如何删除泛型样式呢。css以及其他一些站点范围的css文件(和js文件)?我认为这是下面的一个变体?
我是WP的新手!
// Unique Page Template
if (is_page_template(specific-template.php\')):
// Remove Site-wide CSS
wp_dequeue_style(\'generic styles\', get_stylesheet_uri(), array(), \'1.2\');
// And this would enqueue the unique css
wp_enqueue_style( \'unque to this template css\', get_template_directory_uri() . \'/css/unique-to-this-template.css\', array(), \'1.0\');
endif;
我的逻辑正确吗?谢谢你的指点