Hmmm...thanks, but apparently not. I assumed you meant to use the above code in the hard coded version. This is what I'm using:
// CUSTOM HEADER
function my_header() {
if(is_page('2')) {
?>
<!-- Include jQuery -->
<?php wp_enqueue_script('jquery'); ?>
<?php wp_head(); ?>
<!-- Include the Nivo Slider CSS file -->
<link rel="stylesheet" href="<?php echo THESIS_CUSTOM_FOLDER; ?>/nivo/nivo-slider.css" type="text/css" media="screen" />
<!-- Include the Nivo Slider JS file -->
<script src="<?php echo THESIS_CUSTOM_FOLDER; ?>/nivo/jquery.nivo.slider.js" type="text/javascript"></script>
<!-- Set up the Nivo Slider -->
<script type="text/javascript">
jQuery(window).load(function() {
jQuery('div#slider').nivoSlider({
effect:'fade',
animSpeed:200,
pauseTime:2000,
startSlide:1,
directionNav:false,
controlNav:false,
lastslide: function(){ jQuery('#slider').data('nivo:vars').stop = true; }
});
});
</script>
<div id="slider">
<img src="<?php echo THESIS_CUSTOM_FOLDER; ?>/images/head_home4.jpg" alt="Wisdom Tours" />
<img src="<?php echo THESIS_CUSTOM_FOLDER; ?>/images/head_home1.jpg" alt="Wisdom Tours" />
<img src="<?php echo THESIS_CUSTOM_FOLDER; ?>/images/head_home2.jpg" alt="Wisdom Tours" />
<img src="<?php echo THESIS_CUSTOM_FOLDER; ?>/images/head_home3.jpg" alt="Wisdom Tours" />
</div>
<?php
}
}
The slideshow still won't stop and I'm getting images displayed before the start slide. I'm also thinking that, if I get it to work and end up using it, it may be smart to somehow test for first time visit vs. return visit. Not sure users will want to see this animation every time. Open to suggestion on that idea and I have no idea how to test for it.
This is the dev site: http://www.wisdomtours.com/wp/