Bullets on Slider

info's Avatar

info

19 Dec, 2012 10:32 AM

Hi There
I love your plugin, great job.
One question is there any way to make bullets display only when there is more then one images?

Many thanks,

Jakub

  1. Support Staff 1 Posted by Dmytro Semenov on 19 Dec, 2012 05:57 PM

    Dmytro Semenov's Avatar

    Hi,

    Just don't initilize slider if you don't need it.

    Dmitry

  2. 2 Posted by info on 19 Dec, 2012 06:01 PM

    info's Avatar

    Sorry I wasn't clear enough I need those bullets but I want them to show only when I have more then one image as at the moment it shows even if I have one image so one dot is showing

  3. Support Staff 3 Posted by Dmytro Semenov on 19 Dec, 2012 10:13 PM

    Dmytro Semenov's Avatar

    Check if there is two or more slides before initialization.
    e.g.:

    if(  $('.royalSlider').children().length > 1) {
        // initialize slider
    }
    

    Dmitry

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

Generic

? 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