• I’m looking to extend Slide Anything to create a way to programmatically select a specific slide, either via URL hash or Owl Slider’s “to.owl.carousel” event.

    Is there already functionality for this?
    If not, are there any documented hooks I can use to extend the plugin?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author simonpedge

    (@simonpedge)

    Should not be too hard to code…

    Assuming you have a SA Slider with a CSS ID ‘sa_slider’.

    You then add the following HTML link to change to a specific slide:
    <span id="goto_slide5">GOTO SLIDE 5</span>

    You then will need the following JavaScript/jQuery:

    <script>
    jQuery(document).ready(function() {
    	var owl = jQuery('#sa_slider');
    	jQuery('#goto_slide5').click(function(event){
    		owl.trigger('to.owl.carousel', 5);
    	});
    });
    <script>

    That should work – hopefully no typos in there – let me know how you get on…

Viewing 1 replies (of 1 total)
  • The topic ‘Extend Slide Anything’ is closed to new replies.