Carousel random order on every page load
-
hey!
in a carousel slideshow with “random order” enabled, is there a way to make the slide order reshuffle on every page load? right now it randomizes once and then stays fixed until i update the page again. i’d also like the starting image to be different each time.
(balazsdanyi.com, landing page fullscreen slideshow)
thanks! -
hey!
update: on https://balazsdanyi.com the image-based carousel now starts with different slides correctly.
however, on https://vzt.hu the fullscreen carousel contains only videos, and even with “random order” enabled it always starts with the same video after refresh.
is there any workaround to randomize the first video as well?
thanks
-
I think they don't randomize because of caching. Can you go to Lay Options, then search for cache, and then disable "Layout Cache" ?
This will make your site load a little slower, though.
-
let me think about if I can find a workaround so it will work with caching too. Probably I would have to do the randomized functionality by using JavaScript instead of PHP so it doesn't render my server-side, but clientside
-
I will release a Carousel Add-on update that should fix this with caching enabled.
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it