Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

115
Views
To change SlideToShow dynamically slick slider

I'm using slick slider for WP project.

What I want to achieve is that when user click/swipe the slider, then the value of slidetoshow would be randomly generated between the number 1 and 2.

For instance, 1st swipe the value would be 1. 2nd swipe would be 2. 3rd swipe would be 2 or 1. and so on.

Current situation/behavior is that when I swipe them, then they show 1 or 2 images, then next swipe, they appear 2 images at first, but they skip immediately other images and they show only 1 or 2 images in the end.. I have no idea why they perform like this weird behavior...

any advice or comment I appreciate that. Thank you! :)

my actual code

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!