Tagged: easy slider
-
AuthorPosts
-
July 31, 2024 at 5:56 pm #1463449
Hi
I include a link to this staging site. Under section ‘Our Services’I am using the Easy Slider element. I will up to have 5 images on autorotation, each image has an assigned link
I would like the rotation to pause on mouse hover, is this possible please?..
Kind regards
Mark
July 31, 2024 at 7:22 pm #1463456July 31, 2024 at 9:31 pm #1463461Thank you Guenni007
Where exactly do I copy and paste this code please?.. thank you
function change_slide_options($defaults){
$defaults[‘hoverpause’] = true;
return $defaults;
}
add_filter(‘avf_avia_slideshow_defaults’,’change_slide_options’, 10, 1);August 1, 2024 at 12:37 am #1463467try on child-theme functions.php:
as written on orig Post.
and use it as (with $default) ( and maybe sitespecifc – to not influence all sliders )
function change_slide_options($default){ if(is_page(12345)){ $default['hoverpause'] = true ; } return $default; } add_filter('avf_avia_slideshow_defaults','change_slide_options', 10, 1);
August 1, 2024 at 3:19 pm #1463530Hi,
Thank you Guenni007 ..I have place this code within function.php but unfortunately it does not work.
Has the support team got any ideas?..
Kind regards
August 2, 2024 at 5:41 am #1463573Hi,
Thank you for the update.
The filter works properly on our end. Have you tried removing the conditional function is_page?
function avf_avia_slideshow_defaults_mod($default) { $default['hoverpause'] = true; return $default; } add_filter('avf_avia_slideshow_defaults', 'avf_avia_slideshow_defaults_mod', 10, 1);
Best regards,
IsmaelAugust 2, 2024 at 11:12 am #1463618Hi Ismal
The filter works perfectly. Thank you very much
Kind Regards
Mark
August 2, 2024 at 12:44 pm #1463641Hi,
Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardAugust 2, 2024 at 1:03 pm #1463645Hi Rikard,
No further help required. Thank you. You may close this topic.
Kind regards
Mark
August 2, 2024 at 1:56 pm #1463650but you read that
and maybe sitespecifc – to not influence all sliders
my code above works for that page-id: 12345
if you use the global code from Ismael every slider ( easy-slider, fullwidth-slider, fullscreen-slider etc. will have that hoverpause.
That is only the difference.August 2, 2024 at 4:25 pm #1463661Hi,
Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Easy Slider ‘Mouse Hover’’ is closed to new replies.