我能';t使用jQuery包装.nivo controlNav(nivo滑块)的锚定标记

我能';t使用jQuery包装.nivo controlNav(nivo滑块)的锚定标记,jquery,wordpress,Jquery,Wordpress,我想用标签包装这个 js/custom.js: var $j = jQuery.noConflict(); $j(document).ready(function() { $j(".nivo-controlNav a").wrap("<span></span>"); }); <!-- Include the Nivo Slider JS file --> <script src="<?php bloginfo("template_url"

我想用
标签包装这个

js/custom.js:

var $j = jQuery.noConflict();

$j(document).ready(function() {
 $j(".nivo-controlNav a").wrap("<span></span>");
});
 <!-- Include the Nivo Slider JS file -->
 <script src="<?php bloginfo("template_url"); ?>/js/nivo-slider/jquery.nivo.slider.pack.js" type="text/javascript"></script>
 <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/PIE.js"></script>
 <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/custom.js"></script>
 <!-- Set up the Nivo Slider -->
 <script type="text/javascript">
 jQuery(window).load(function() {
  jQuery('#slider').nivoSlider();
 });
 </script>
</head>
var$j=jQuery.noConflict();
$j(文档).ready(函数(){
$j(“.nivo controlNav a”).wrap(“);
});
header.php:

var $j = jQuery.noConflict();

$j(document).ready(function() {
 $j(".nivo-controlNav a").wrap("<span></span>");
});
 <!-- Include the Nivo Slider JS file -->
 <script src="<?php bloginfo("template_url"); ?>/js/nivo-slider/jquery.nivo.slider.pack.js" type="text/javascript"></script>
 <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/PIE.js"></script>
 <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/custom.js"></script>
 <!-- Set up the Nivo Slider -->
 <script type="text/javascript">
 jQuery(window).load(function() {
  jQuery('#slider').nivoSlider();
 });
 </script>
</head>


检查一下,也许对你有用

var $j = jQuery.noConflict();

$j(document).ready(function() {
 $j(".nivo-controlNav a").wrap("<span/>");
});
var$j=jQuery.noConflict();
$j(文档).ready(函数(){
$j(“.nivo controlNav a”).wrap(“);
});