i dont seem to know what is wrong with my code in my functions.php file, I am using a child theme that i made based on the twentyten theme.
here is my code hopefully you guys can tell me whats wrong with it.
function style_n_scripts(){
wp_enqueue_script('jquery' );
wp_register_script('style-js', get_template_directory_uri() . 'stylehercloset.js', array( 'jquery' ), NULL, false );
wp_enqueue_script( 'style-js' );
}
add_action('wp_enqueue_scripts','style_n_scripts');
在名称文件前添加斜杠。
wp_register_script('style-js', get_stylesheet_directory_uri() . '/stylehercloset.js', array( 'jquery' ), NULL, false );
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.