Viewing 1 replies (of 1 total)
  • Plugin Author Phil Ewels

    (@tallphil)

    Hi phillystyle123,

    The code in theme.js is as follows:

    //must target by ID, so these need to be used in your content
    $('#myCarousel, #myCarousel2, #agnosia-bootstrap-carousel').swiperight(function() {
    	$(this).carousel('prev');
    });
    $('#myCarousel, #myCarousel2, #agnosia-bootstrap-carousel').swipeleft(function() {
    	$(this).carousel('next');
    });

    The problem is actually suggested by the comment – those element IDs don’t exist in your page. The generated carousel has the ID cptbc_928, though this is auto-generated, so you’re better off targetting by class instead:

    $('.carousel.slide').swiperight(function() {

    Hopefully that should work.

    I’ve not seen swipe support for the carousel before though, that’s cool! I’ll make a note to think about adding support for a future version of the plugin.

    Phil

Viewing 1 replies (of 1 total)
  • The topic ‘swipe support’ is closed to new replies.