Wordpress - 更新后滑块不工作
Wordpress - slider not working after update
这是分配给我的网站,你能帮我修复滑块吗?我不知道是什么原因导致了错误。
你的 jquery 的路径是错误的,修复它。查看wp_enqueue_script可能是那里的路径不对,找到正确的目录改一下。
您也可以在您的 header.php 文件中搜索它 这是您头部的样子:
<head>
<script src="jquery-1.12.2.min.js"></script> <!--this line is wrong!-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Cabin:400,500,400italic,600,700|Sanchez' rel='stylesheet' type='text/css'>
<title>Kent CNC - CNC Machining Centers and Turning Centers</title>
我不认为 wp_enqueue_script 是用来设置它的。找到它的位置并设置正确的路径。
这是分配给我的网站,你能帮我修复滑块吗?我不知道是什么原因导致了错误。
你的 jquery 的路径是错误的,修复它。查看wp_enqueue_script可能是那里的路径不对,找到正确的目录改一下。
您也可以在您的 header.php 文件中搜索它 这是您头部的样子:
<head>
<script src="jquery-1.12.2.min.js"></script> <!--this line is wrong!-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Cabin:400,500,400italic,600,700|Sanchez' rel='stylesheet' type='text/css'>
<title>Kent CNC - CNC Machining Centers and Turning Centers</title>
我不认为 wp_enqueue_script 是用来设置它的。找到它的位置并设置正确的路径。