The problem is the NIVO Slider Plug-in.
It adds the JavaScript in a very ‘non-standard’ way.
To add it in a ‘normal’ way, in nivo-slider-for-wordpress/nivoslider4wp-show.php
, I would suggest replacing:
function js_NivoSlider(){
?>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo get_option('siteurl') . '/wp-content/plugins/nivo-slider-for-wordpress/js/jquery.nivo.slider.pack.js';?>"></script>
<script type="text/javascript">
var $nv4wp = jQuery.noConflict();
$nv4wp(window).load(function() {
$nv4wp('#slider').nivoSlider({
with
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-nivo-slider-pack',get_option('siteurl') . '/wp-content/plugins/nivo-slider-for-wordpress/js/jquery.nivo.slider.pack.js',array('jquery'));
function js_NivoSlider(){
?>
<script type="text/javascript">
// var $nv4wp = jQuery.noConflict();
jQuery(window).load(function() {
jQuery('#slider').nivoSlider({
Hopefully this will work. If it doesn’t, I suggest adding the next bit of code as a separate script rather than by printing it straight onto the HTML page.