Okay
  Public Ticket #979558
Random slides
Closed

Comments

  •  2
    efficado started the conversation

    Dear


    I would like to use Layerslider for 2 sliders on my homepage: one to show pictures and one for logos.

    Now I want the pictures and logos to be shown at random, so that a visitor that comes on the site not always sees the same images.

    How can I do this?

    Can you please tell me step by step?


    Thanks very much.

    Kind regards

    Joeri


  • [deleted] replied

    Hey Joeri,

    To achieve this and to use two separate sliders you will need to edit the template file and use PHP custom coding. 

    Alternatively, you can use the same slider with two different slides and also enable the shuffle mode to start them randomly. This latter is an easier solution and does not require programming skills.

  •  2
    efficado replied

    OK thanks Attila.

    I guess I can limit myself to one slider on my homepage.

    But how do I enable "shuffle mode" ??

  • [deleted] replied

    This option is located in the Slider Settings under the Slideshow tab. 

    You can also set a random starting slide in this section.

  •  2
    KMB-Kommunikation replied

    Hello Attila,

    I have another question concerning the random option of the slider.

    Is it possible to let the slider pick a random first slide out of 4 different slides? For example: We have 24 slides in the slider and want the slider to either start at slide 1, 7, 13 or 19. The following slides should be shown in the correct order. If the slider starts at 7, the next slide should be 8 then 9 and so on. Is there a way to add this in the random option? It would also be possible for us to create 4 different sliders (each with 6 slides) and have the program shuffle the different sliders.

    Is this possible without changing the php?

    Thank you in advance!

  • [deleted] replied

    Hey KMB-Kommunikation,

    Unfortunately there is no option to set up a complex shuffle effect like this at the moment.

  •  2
    KMB-Kommunikation replied

    Thank you for your fast reply!

    Can you tell me in which php file we can find the code for this? Maybe we can adjust it to our needs.

    Kind regards

  • [deleted] replied

    You could try to use the LayerSlider API to achieve a similar effect. You can access the first slide's index with it and change it with the sliderDidLoad event.

    https://support.kreaturamedia.com/docs/layersliderwp/documentation.html#layerslider-api