Using Javascript to pick a specific slide in Revolution slider at top.

1 reply · opened Sep 6, 2016

JJerryBroughtonSep 6, 2016

I am using the revolution slider for a hero video. I have two slides each with videos and they both work.

I want to be able to programmatically have the video go to the 2nd slide video. I have a variable
var apiRevoSlider = tpj('#slider').show().revolution( ... all the init stuff ...)

I tried apiRevoSlider.revcallslidewithid('secondslide'); (my target slide is with id="second slide") but it doesn't seem to work.
i also tried this from "revolution.slide.onloaded" but still nothing.

What am I missing.

SSemicolon WebSTAFFSep 10, 2016

Hello,

Please consider using the following Code:

jQuery('#sliderid').revshowslide(2);

This will work much better for your Usage Scenario. More Documentation regarding this can be found here: https://www.themepunch.com/revsliderjquery-doc/api/ .

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard