Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #699884

    Hi everyone,
    i’m trying to add some navigation buttons (previous, next) to the testimontial slider but it doesn’t seem to work.

    I put 2 icons with links under my testimonial element and i try to fetch click event on them (with jquery) to activate next/previous element.

    here is my jquery code for next element :

    $('#temoignages .av_font_icon:last-child a').on( "click", function() {
    
        var elementActif ="";
        elementActif = $('div#temoignages div.avia-slider-testimonials .active-slide');
        var elementSuiv = elementActif.next();
        resetTimer(elementActif);
    
         if (elementSuiv.length > 0) {
        		elementActif.removeClass("active-slide");
        		elementActif.css({
              		"opacity": "0",
              		"transform": "translateZ(0px)",
              		"transition": "none",
              		"-webkit-transition": "none",
              		"visibility": "hidden",
              		"z-index": 2
            	});
        		elementActif.next().addClass("active-slide");
        		elementActif.next().css({
              		"opacity": "1",
              		"transform": "translateZ(0px)",
              		"transition": "none",
              		"-webkit-transition": "none",
              		"visibility": "visible",
              		"z-index": 3
            	});
          }
    	});

    but in this exemple, jquery always return the first element of the slider as the “active-slide”.
    So my code work to change from 1st to 2nd slide, but not nexts…
    But In the devtools i can see that the active-slide is not on the first element.
    So strange !

    So my question is, is there an easier way to activate next/previons element for this slider ?

    Thanks a lot for your help.

    #700908

    Hey dravenrip,

    I checked your testimonial slider and your buttons seem to work fine now. So can you confirm that this is fixed for you already please?

    Best regards,
    Andy

    #701070

    oh sorry, what you can see is the old version of the slider not my dev work described here.
    In the old version slider works with the object id. So if you add some builder elements, it changes the IDs and the slider doesn’t work anymore.
    That’s why i need to change it.

    thanks for your help

    #701082

    Hi,

    Unfortunately it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However if its really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.