2016-06-12 8 views
0

私のコードに何が問題なのかわかりません。これは、これまでのところ、それを次のとおりです。私はこのエラーを見たfunction.php(Wordpress)でエンキューするブートストラップに何か問題があります

function reg_scripts() { 
wp_enqueue_style('bootstrapstylemin', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css'); 
wp_enqueue_style('bootstrapstyleresmin', get_template_directory_uri() . '/bootstrap/css/bootstrap-responsive.min.css');} 

add_action('wp_enqueue_scripts', 'reg_scripts'); 

function wpbootstrap_scripts_with_jquery(){ 

wp_enqueue_script('custom-scriptes', get_stylesheet_directory_uri() . '/bootstrap/js/bootstrap.js', array('bootstrap-jquery')); 

add_action('wp_enqueue_scripts', 'wpbootstrap_scripts_with_jquery'); 

I am sorry, there is a screenshot of the console

した後、私は、CDNのは削除されますが、まだ動作していません。

+0

あなたは何が間違っているかを明記していないので、誰もあなたのためにすることはできません。コンソールのエラーをチェックしましたか?すなわち、 404ファイルに?# – David

答えて

0

これを試してください。

function reg_scripts() { 
wp_enqueue_style('bootstrapstylemin', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css', array(), '3.4.6'); 
wp_enqueue_style('bootstrapstyleresmin', get_template_directory_uri() . '/bootstrap/css/bootstrap-responsive.min.css', array(), '1.0.0'); 
} 

add_action('wp_enqueue_scripts', 'reg_scripts'); 

function wpbootstrap_scripts_with_jquery(){ 

wp_enqueue_script('custom-scriptes', get_stylesheet_directory_uri() . '/bootstrap/js/bootstrap.js', array('bootstrap-jquery'), '3.4.6', false); 

add_action('wp_enqueue_scripts', 'wpbootstrap_scripts_with_jquery'); 
+0

私は試みたが、まだ動作していない:( –

関連する問題