TypeError:$不是Wordpress函数 [英] TypeError: $ is not a function Wordpress
本文介绍了TypeError:$不是Wordpress函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在购买的主题中的 .js
文档中可能有错误:
I might have an error in a .js
document in a theme I have purchase:
$('.tagcloud a').wrap('<span class="st_tag" />');
我试图解决它,但我不是程序员所以我不知道如何解决。
该网站是这样的: http://www.framerental.com 。
I am trying to solve it but I am not a programmer so I don't know how. The site is this: http://www.framerental.com .
推荐答案
你使用 jQuery.noConflict();
所以 $
未定义。
您可以在此处阅读更多相关信息 docs
You can read more about it here docs
尝试以这种方式修改代码(添加 $
签到就绪功能) :
Try to modify your code in this way (add $
sign to ready function):
jQuery(document).ready(function($) {
// Code that uses jQuery's $ can follow here.
});
这篇关于TypeError:$不是Wordpress函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文