jQuery slider / Posts /

Disable slider when images not more than 3


Hi All,

    how can i disable slider if images not more than 3. and how to disable slider in desktop? for Jquery slider demo 4

Samadhan  6 years ago   viewed: 4571    

1 Answer


Set the initSliderByCallingInitFunc option in the slider's script to true, and do not init it unless your slider has more than 3 slides;

Use media queries in the CSS to set the slider display:none when the media queries found it is not desktop;

  6 years ago


Your name*
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: