This plugin stopped working without modification. It was working last week. I've spent the last week working on something else, came back to it and not working. Any suggestions as to why?
<?php wp_enqueue_script("jquery"); ?>
<?php
if ( is_page('home') ) {
// If it's the home page, we want the slider, otherwise don't bother
wp_register_script('easyslider',
get_bloginfo('template_directory') . '/js/easySlider1.7.js');
// enqueue the script
wp_enqueue_script('easyslider');
}
?>
<?php
if ( is_page('our-services') ) {
// If it's the 'our services' page, we want the capty plug-in, otherwise don't bother
wp_register_script('capty',
get_bloginfo('template_directory') . '/js/jquery.capty.min.js');
// enqueue the script
wp_enqueue_script('capty');
}
?>
<?php wp_head();?>
<?php if ( is_front_page() ) { ?>
<script type="text/javascript">
jQuery(document).ready(function($){
jQuery("#slider").easySlider({
auto: true,
continuous: true,
numeric: true
});
});
</script>
<?php }; ?>
<?php if ( is_page('our-services') ) { ?>
<script type="text/javascript">
jQuery(document).ready(function($){
jQuery('#desktop,#advice,#infrastructure,#web').capty({
animation: 'slide',
speed: 400
});
});
</script>
<?php }; ?>
Ok, thanks for all the answers. It seems the problem was with another plug-in; I noticed that there was a new version of that plug-in available, installed that, and now everything is fine.