2016-07-06 99 views
0

我在我的website的WordPress 4.5.3 - 未捕獲的ReferenceError:jQuery是沒有定義

(index):878 Uncaught ReferenceError: jQuery is not defined(anonymous function) @ (index):878 jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1

當點擊錯誤,我得到這個得到了在谷歌的控制檯錯誤:jQuery的(窗口)。就緒(函數($){

我找出wp_customize_support_script功能在我theme.php但我不知道我能修好它。

你對我的問題的一些想法?謝謝

+1

我沒有看到您包含'jQuery'核心庫的位置。你也需要修改'jQuery(window).ready(function($){})''。 '$'是jQuery的保留字,直到您使用[$ .noConflict()](https://api.jquery.com/jquery.noconflict/)釋放它的鎖定。 – Rohit416

回答

0

我認爲這些錯誤與Rohit416提到的'$'有關。它看起來像嵌入在主題中,所以我想說,如果它不是最新版本,你可能想更新你的主題。

看起來您的網站使用的是名爲Flavio的高級主題。如果您是從Themeforest購買的,您可以使用以下插件進行更新:https://github.com/envato/wp-envato-market

相關問題