我将引导主题转移到WordPress,并试图在functions.php中添加JavaScript文件,并且执行显示没有错误:
但没有任何效果。
js文件在这里:js文件
我的dev控制台输出是:
TypeError: $ is undefined carousel.js:3:6079 http://localhost/wordpress/wp-content/themes/bootgotya/js/carousel.js?ver=1:3
TypeError: $ is not a function flexslider.js:14:2 http://localhost/w
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_