Messed up my code whilst trying to add slider
-
I’ve just messed up some of my code whilst trying to solve an issue with a header slider I installed. I was advised to replace the script code in the responsive_headerimageslider.php file with the following:
<script type=”text/javascript”>
jQuery(function() {
jQuery(‘#slides’).slidesjs({
width: <?php echo $sliderdefultwidth ; ?>,
height: <?php echo $sliderdefultheight ; ?>,
play: {
active: <?php echo $pausedefulthover; ?>,
auto: <?php echo $autopalytrue; ?>,
interval: <?php echo $autoplaydefultspeed; ?>,
swap: true
},
navigation: {
active: false,
effect: “slide”
// [string] Can be either “slide” or “fade”.
},
pagination: {
active: <?php echo $paginationtrue; ?>
}
});
});
</script>It has resulted in all the slider images appearing on my homepage at once. But I stupidly didn’t save a backup of the file to go back to.
I deleted the plugin as it was more trouble than it was worth and so the above file has disappeared but my header is still showing the stacked images.
Can you help?
Thanks
- The topic ‘Messed up my code whilst trying to add slider’ is closed to new replies.