This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

How can I switch to a specific slide in SiteOrigin Layout Slider?

8 years ago · Last reply by Alex S 8 years ago

I’m using the SiteOrigin Layout Slider in WordPress. I gave it an ID of mySlider using the attributes tab under Widget Styles.

I have two different slides and I want to be able to switch between them using JavaScript. I’ve tried calling jQuery(“#mySlider”).cycle(0) and jQuery(“#mySlider”).cycle(1) but the console says “slideshow must be initialized before sending commands”.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 8 years, 7 months ago

    Hi Pikamander2

    #mySlider is applied to the widget container rather than the slider itself. You should instead target .sow-slider-images
    Something like this should work:

    jQuery('#mySlider .sow-slider-images').cycle(0)

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread