fabiorino / crelly-slider

A free responsive slider for WordPress that supports layers. Add texts, images, videos and beautify them with transitions and animations.
MIT License
104 stars 36 forks source link

control Number of loops #59

Open sojorner opened 5 years ago

sojorner commented 5 years ago

Crelly-Slider: I'd like to control the number of times that the slider loops through the slides. I don't see it as an option, so is there a place in the code that I can adjust this? Thanks

fabiorino commented 5 years ago

Hi, the modification requires to modify both the frontend and the backend of the plugin. The frontend modification should be done somewhere in the file /js/jquery.crellyslider.js. The backend modification might be more difficult. /wordpress/slider.php contains all the slider options, so that's the start point. Then, you need to modify /wordpress/ajax.php and /wordpress/tables.php to save the setting into the database. Make sure to set CS_DEBUG to true while you're working in the file /crellyslider.php