Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.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
Php 未在Wordpress中读取JS文件夹_Php_Wordpress - Fatal编程技术网

Php 未在Wordpress中读取JS文件夹

Php 未在Wordpress中读取JS文件夹,php,wordpress,Php,Wordpress,我的wordpress没有拾取我的js文件夹。谁都知道为什么? 我的function.php文件如下所示: <?php function lcc_files() { wp_enqueue_script('main-lcc-js', get_theme_file_uri('/js/scripts-bundled.js'), NULL, '1.0', true); wp_enqueue_style('lcc_main_styles', get_stylesheet_uri());

我的wordpress没有拾取我的js文件夹。谁都知道为什么? 我的function.php文件如下所示:

<?php

function lcc_files() {
  wp_enqueue_script('main-lcc-js', get_theme_file_uri('/js/scripts-bundled.js'), NULL, '1.0', true);
  wp_enqueue_style('lcc_main_styles', get_stylesheet_uri());
  
}

add_action('wp_enqueue_scripts', 'lcc_files');

function lcc_features() {
  add_theme_support('title-tag');
}
add_action('after_setup_theme', 'lcc_features');

我的错误是Wordpress网站的页脚还没有设置好。
我一设置页脚,Javascript就工作了。
这就是为什么没有答案有帮助,实际上没有人提出这一点