Share button like on Photoswipe

mario.sutalo's Avatar


18 Mar, 2018 05:58 PM

Hello, i am using RoyalSliders image gallery with fullscreen option, i would like to add share button, like the one on Photoswipe gallery, which would be on the left side of fullscreen button even when gallery is in fullscreen mode. Do i need to add it as overlay and calculate its position when gallery size changes, or is there a better way?

  1. Support Staff 1 Posted by Dmitry Semenov on 18 Mar, 2018 08:18 PM

    Dmitry Semenov's Avatar


    You may add any element to the slider after it's initialized (after you call .royalSlider({ ...}) method). For example:

    $('<button>Test button</button>').css({position: 'absolute', top:0, right:50}).appendTo('.royalSlider');
  2. 2 Posted by mario.sutalo on 19 Mar, 2018 09:15 AM

    mario.sutalo's Avatar

    Great, I will try this today. Thank you.

  3. 3 Posted by mario.sutalo on 19 Mar, 2018 03:33 PM

    mario.sutalo's Avatar

    Thats it, thank you.

  4. mario.sutalo closed this discussion on 19 Mar, 2018 03:33 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac