Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用Wordpress排队函数链接样式表_Wordpress_Enqueue - Fatal编程技术网

如何使用Wordpress排队函数链接样式表

如何使用Wordpress排队函数链接样式表,wordpress,enqueue,Wordpress,Enqueue,功能webzone_sahil(){ wp_enqueue_style('style',get_样式表_uri()) } 添加动作(“wp_排队脚本”、“webzone_sahil”) 希望这对你有帮助 //Main-theme add_action( 'wp_enqueue_scripts', 'wpsites_second_style_sheet' ); function wpsites_second_style_sheet() { w

功能webzone_sahil(){ wp_enqueue_style('style',get_样式表_uri())

} 添加动作(“wp_排队脚本”、“webzone_sahil”)

希望这对你有帮助

//Main-theme                    
add_action( 'wp_enqueue_scripts', 'wpsites_second_style_sheet' );
function wpsites_second_style_sheet() {

       wp_register_style( 'second-style', get_template_directory_uri() .'css/second-style.css', array(), '20130608');
       wp_enqueue_style( 'second-style' );    

}


//child-theme
add_action( 'wp_enqueue_scripts', 'wpsites_second_style_sheet' );
function wpsites_second_style_sheet() {

       wp_register_style( 'second-style', get_stylesheet_directory_uri() .'css/second-style.css', array(), '20130608');
       wp_enqueue_style( 'second-style' );    

}

你好你能给这个问题添加一个实际的问题吗?这能回答你的问题吗?