我是否放置add_action
之前或之后function myTheme_script {enqueue functions here}
将脚本或样式表排入函数队列时。php,还是这很重要?我从WP论坛的版主那里看到了这两个。
所以
function profondo_scripts() {
wp_enqueue_style( \'twentyfifteen-style\', get_template_directory_uri() . \'/style.css\' );
wp_enqueue_style( \'profondo-child-style\', get_stylesheet_uri() );
}
add_action( \'wp_enqueue_scripts\', \'profondo_scripts\' );
或。。。add_action( \'wp_enqueue_scripts\', \'profondo_scripts\' );
function profondo_scripts() {
wp_enqueue_style( \'twentyfifteen-style\', get_template_directory_uri() . \'/style.css\' );
wp_enqueue_style( \'profondo-child-style\', get_stylesheet_uri() );
}