Okay
  Public Ticket #2462783
Full-screen button
Closed

Comments

  • Oleg started the conversation

    Hello, is it possible to set a button in a layer-slider which will trigger a full screen of a slide instead of double-clicking it?

  •  244
    Kreatura Support replied

    Hello Oleg,

    Thank you for getting in touch with us!
    It is possible with a small javascript code. You should allow the fullscreen mode and add a class or an ID to your button in the layer links and attributes tab. After that you should navigate to the Event callbacks tab and write this code to the sliderDidLoad function:

    jQuery('.your-button-class').on('click', function(){
        jQuery('.ls-fullscreen-wrapper').dblclick();
    })
    

    Best Regards,
    Andrea | Kreatura Support Team

  • Oleg replied

    It was done very easy with your jQuerry advice! Thank you very much, Kristof!

  •  244
    Kreatura Support replied

    You are welcome!smile.png

    Best Regards,
    Andrea | Kreatura Support Team