在我正在处理的主题中,最多有3个样式表。我正在使用挂钩“wp\\u enqueue\\u scripts”。样式表的顺序对于覆盖样式很重要。我有这样一个代码:
add_action(\'wp_enqueue_scripts\', \'add_stylesheet_one\', 10);
add_action(\'wp_enqueue_scripts\', \'add_stylesheet_two\', 14);
add_action(\'wp_enqueue_scripts\', \'add_stylesheet_three\', 12);
有了这个优先级,样式表顺序应该是“stylesheet\\u one”、“stylesheet\\u three”和“stylesheet\\u two”。但优先级没有任何影响。我试过不同的号码,但顺序没有改变。我错过什么了吗?Thx寻求帮助!!!