Create new slider or slides on click's Avatar

26 Nov, 2012 08:08 AM

Hi wonderfull plugin!

I have a question, i created a slider that has "x" number of slides, i want to know if i could create a button within the slider that destroys the current slider and creates another one.

In Example

you have an arrow to move forward and back between slides(left and right) of the current slider, and an arrow (up and down) that changes the current slides.

Could this be posible simply by destroying the current slide and create it with the dinamyc slider article example?

Sorry my english is not quite as good but i hope you can understand me.


  1. Support Staff 1 Posted by Dmytro Semenov on 26 Nov, 2012 09:37 AM

    Dmytro Semenov's Avatar


    Yep, you can do that, to replace third slide:

    jQuery('.royalSlider').royalSlider('removeSlide', 2).royalSlider('appendSlide', '<div style="color:#FFF;background:red">new slide markup</div>',2);


  2. 2 Posted by on 15 Dec, 2012 05:51 PM's Avatar

    can i remove more than 1 slide at once?, destroy is not working for me.


  3. Support Staff 3 Posted by Dmytro Semenov on 16 Dec, 2012 11:58 AM

    Dmytro Semenov's Avatar

    How exactly do you call destroy method? And what exactly do you want it to do.


  4. 4 Posted by on 16 Dec, 2012 05:15 PM's Avatar
    etc etc

    it worked, the thing is i want to make a slider that when you click on an up or down arrow you change the entire slider (5 sliders in total, with text links and various images), but perhaps is more convenient to use regular jquery than royal slider api.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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