2013-03-04 18 views

回答

0

您應該使用wp_register_scriptwp_enqueue_script。將該文件添加到您的主題文件夾。

function include_jquery_corner(){ 
    wp_register_script('jq_corner', get_template_directory_uri() . 'PATH TO YOUR JS FILE'); 
    wp_enqueue_script('jq_corner'); 
} 

add_action('wp_enqueue_scripts', 'include_jquery_corner');