$("a [rel ='example1']").colorbox不是一个函数

Akh*_*rma 1 wordpress jquery colorbox

我已经将colorbox jQuery插件集成到Wordpress主题中.但在主页上显示 $("a[rel='example1']").colorbox的不是功能

但是当我在内页上运行代码时,它的工作正常.

请帮忙

链接到该网站:http://lab.pixzon.com/ca

下面是头文件的代码

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo bloginfo('title');?></title>
<link rel="shortcut icon" href="<?php echo bloginfo('template_url')?>/images/icon.jpg"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo bloginfo('stylesheet_url')?>" type="text/css" rel="stylesheet" />
<link media="screen" rel="stylesheet" href="<?php echo bloginfo('template_url')?>/css/colorbox.css" />
<script src="<?php echo bloginfo('template_url')?>/colorbox/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo bloginfo('template_url')?>/js/browcss.js"></script>
<script src="<?php echo bloginfo('template_url')?>/colorbox/jquery.colorbox.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo bloginfo('template_url')?>/js/site.js"></script>
<script language="JavaScript" src="<?php echo bloginfo('template_url')?>/js/swfobject.js"></script>
<?php 
wp_head();
?>
Run Code Online (Sandbox Code Playgroud)

bes*_*orm 6

你的问题是,你正在加载两个版本的jQuery.

实际发生的事情:你加载第一个jQuery,然后使用Colorbox插件扩展它,然后再次覆盖你的第一个(扩展)jQuery.只需删除jQuery的最后一个引用,你应该很好.

编辑:看我的代码我怀疑,你的wp_head();电话是添加第二个参考.

EDIT2:在主页上,正在重新加载jQuery脚本(在poll中div)