我在我的网站上实现了一些JavaScript,但我不断收到以下错误消息:
未捕获的ReferenceError:未定义jQuery
和
未捕获的SyntaxError:意外的令牌<
这是我在header.php中使用的JavaScript:
<script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.jcarousel.min.js"></script>
<script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.scrollTo.js"></script>
<script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.backgroundPosition.js"></script>
<script type="text/javascript" src="/test/wp-content/themes/child/script/scripts.js"></script>
<script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.cycle.lite.js"></script>
<script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.accordian.js"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery('#contentGallery').cycle({
fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
});
});
</script>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed">
<header id="branding" role="banner">
<hgroup>
<h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1> …Run Code Online (Sandbox Code Playgroud) 我的wordpress网站的主页似乎正确显示,但如果您点击进入任何其他页面,我会收到以下错误消息:
Not Found
The requested URL /about was not found on this server.
Apache/2 Server at www.wildlionmedia.co.uk Port 80
Run Code Online (Sandbox Code Playgroud)
我不确定主题或.htaccess文件是否存在问题,而该文件未被正确重写.
http://www.wildlionmedia.co.uk/
我有什么想法可以解决这个问题?
# Switch rewrite engine off in case this was installed under HostPay.
RewriteEngine On
SetEnv DEFAULT_PHP_VERSION 53
DirectoryIndex index.cgi index.php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine Off
RewriteBase /wildlionmedia.co.uk/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wildlionmedia.co.uk/index.php [L]
</IfModule>
# END WordPress
Run Code Online (Sandbox Code Playgroud) 我已将wordpress网站复制到正确的域名,但是当我查看它时,我收到以下错误消息:
Warning: system() has been disabled for security reasons in /home/paddocch/public_html/wildlionmedia.co.uk/wp-includes/cron.php on line 262
Run Code Online (Sandbox Code Playgroud)
http://www.wildlionmedia.co.uk/
知道怎么解决吗?
我已经实现了一个无限的旋转木马,但我现在收到以下错误消息
对象#没有方法'carouFredSel'
我编辑了一些现在正在运行的菜单代码,但两个脚本之间可能存在冲突吗?
http://www.ogormanconstruction.co.uk/basingstoke-treatment-works
使用Javascript:
<script type="text/javascript">
jQuery(document).ready(function() {
var imgLength = jQuery('ul#fredsel img').length;
jQuery('#totalImg').html(imgLength);
jQuery('#imgCount').html(1);
// Using custom configuration
// Using custom configuration
jQuery("#fredsel").carouFredSel({
items: 1,
align: false,
auto: false,
width: 1500,
scroll : {
items : 1,
duration : 1000,
pauseDuration : 2000
},
prev: {
button : "a.prev-slide",
onBefore : function() {
var theCount = parseInt(jQuery('#imgCount').html());
if (theCount === 1){
var theLength = jQuery('ul#fredsel img').length;
jQuery('#imgCount').html(theLength);
} else {
jQuery('#imgCount').html(theCount-1);
};
},
},
next: {
button : …Run Code Online (Sandbox Code Playgroud) 我的所有内容似乎都没有在网络浏览器中显示.我在Wordpress中创建了这个网站
我不确定我是否遗漏了一些重要的代码,但它似乎显示了徽标和"服务"栏,但否则我的页面似乎是空的
header.php文件:
</head>
<body class="">
<div id="wrapper">
<div id="jump">
<p><a href="#content">jump to content</a></p>
</div>
<div class="hud-content">
<div id="content-container">
<div id="header">
<div id="logo">
<a href="/" title="Wild Lion Media">
<img src="/wildlion/wp-content/themes/child/images/logo.png" width="95" height="120" alt="Wild Lion Media" title="Wild Lion Media" />
</a>
</div>
<h1>
Wild Lion Media
</h1>
<div id="hud-toggler">
<ul>
<li><a href="#" class="hud-toggle">Login / Register</a></li>
</ul>
</div>
</div><div id="nav">
<ul>
<li id="nav-home"><a href="/" title="Return to the Wild Lion Media home page">Home</a></li>
<li id="nav-dandad"><a class="nav-item" href="/dandad" title="Wild Lion Media">Wild Lion Media</a>
<div …Run Code Online (Sandbox Code Playgroud)