Hi,
Thank you for liking our plugin. What you’re asking is not possible with MetaSlider right out of the box but MetaSlider has hooks available to make such custom changes.
However, you may need some extra coding in order for you to achieve what you want. https://www.metaslider.com/metaslider_type_slider_javascript/
I’ve made a custom code that would work similar on what you want, but you still have to make some changes to update the code to work on your end. I’ve added some comments on what you need to change. You just have to put this on your theme’s function.php file.
function metaslider_random_images($attributes, $slide, $slider_id) {
// change 123 to your slider id
// and change 234 to your first slide's id
if (($slider_id == 123) && ($slide['id']==234)) {
$images = array(
'image url here',
'image url here',
'image url here',
);
$attributes['src'] = $images[rand(0,2)];
}
return $attributes;
}
// use this filter if you're using flex slider
add_filter('metaslider_flex_slider_image_attributes', 'metaslider_random_images', 10, 3);
// use this filter if you're using r.slides
add_filter('metaslider_responsive_slider_image_attributes', 'metaslider_random_images', 10, 3);
Hope this helps!
-
This reply was modified 3 years, 8 months ago by
Arreane.